Install Sam on Wix
This guide walks you through installing Sam on a Wix site. Total time: about 3 minutes.
Prerequisites
- Wix Premium plan (Combo or higher)
- Editor access to your Wix site
- A Sam account at viasam.app
- Your Sam API token
Step 1 — Open Custom Code
- Open your Wix dashboard.
- Click Settings in the left sidebar.
- Scroll to the Advanced section.
- Click Custom Code.
Step 2 — Add a new code snippet
- Click + Add Custom Code in the top-right.
- In the code box, paste this snippet (replace
YOUR_API_KEYwith your actual token):
<script src="https://cdn.viasam.app/v1/widget.js" data-api-key="YOUR_API_KEY" defer></script>💡 Copy from your Sam dashboard (Widgets → Install your widget → Wix) — the API key is pre-filled.
Step 3 — Configure where it loads
In the same dialog:
- Add Code to Pages → All pages → check Load code on each new page
- Place Code in → Body - end
- Name →
Sam Widget
Step 4 — Apply
Click Apply in the top-right.
Step 5 — Verify
Open your live Wix site (not the Editor preview — Wix sometimes blocks Custom Code in the Editor preview). The widget should appear in the corner you configured.
Troubleshooting
Widget doesn’t appear on the live site. Custom Code only loads on published pages. If you haven’t published recently, click Publish in the top-right of the Wix Editor and try again.
Widget appears in the Editor but not on the live site. Wix sometimes caches static pages. Wait a couple of minutes and refresh in incognito mode.
Custom Code option is missing. You’re on the free Wix plan. Upgrade to a Premium plan to enable Custom Code.
Widget appears on some pages but not others. In Custom Code settings, change “Add Code to Pages” to All pages if you only had it on Specific pages.
Need help?
Email support@viasam.app.