Integration Guides
Wix
Add Rybbit analytics to your Wix site
Wix adds third-party scripts through the Custom Code panel in the site dashboard, where you choose which pages load the code and where in the document it goes.
Custom code requires a Wix Premium plan and a connected domain. It is not available on free Wix sites.
Get your tracking snippet
In your Rybbit dashboard, open Site Settings → Tracking Script and copy your snippet. It looks like this:
<script src="https://app.rybbit.io/api/script.js?siteId=YOUR_SITE_ID" defer></script>YOUR_SITE_ID is the numeric ID of your site. If you self-host Rybbit, app.rybbit.io is the domain of your own instance.
Add the snippet to Wix
- Open your site's dashboard and go to Settings.
- Open Custom Code (under Advanced). Older dashboards list it as Tracking Tools & Analytics under Marketing & SEO.
- Click + Add Custom Code and paste the snippet into the code box.
- Name the code, for example
Rybbit. - Under Add Code to Pages, choose All pages and Load code once. The script tracks Wix's client-side navigation itself, so loading it on every page change would inject it repeatedly.
- Under Place Code in, choose Head.
- Click Apply.
Verify installation
Open your live site in a new tab and click through a few pages. Within a few seconds the pageviews appear in the Rybbit dashboard.
If nothing shows up:
- View the page source and search for
script.js?siteId=to confirm the snippet is on the page. - Open the browser Network tab and check that
script.jsreturns200and thatPOSTrequests go to/api/track. - Disable ad blockers, or set up a proxy so the script loads from your own domain.
- See the script troubleshooting guide for other common causes.
Troubleshooting
- Custom Code is missing from Settings: the site has no Premium plan or no connected domain. Both are required before the panel appears.
- Duplicate pageviews: the code was added with Load code on each new page. Edit the entry and switch to Load code once.
Next steps
- Track custom events such as signups, purchases and button clicks.
- Identify users to connect sessions to accounts.
- Proxy the script through your own domain to bypass ad blockers.
- Script attributes let you skip or mask URLs and tag events.