Install on Wix
Add XPmetric to a Wix site through Settings → Custom code, placed in the head of all pages.
Wix lets you add a script to every page from the dashboard, without opening an editor.
Replace YOUR_SITE_TOKEN with your site token from Settings → Sites → Get Script.
Tracking snippet
<script defer data-site="YOUR_SITE_TOKEN" src="https://xpmetric.com/p.js"></script>Before you start
Wix allows custom code only on a paid plan with a connected domain. On a free Wix site the Custom code page shows an upgrade prompt instead.
Steps
- Open your site's dashboard and go to Settings → Custom code (in the Advanced section).
- Click + Add Custom Code and paste the tracking snippet.
- Give it a name such as
XPmetric. - Under Add Code to Pages, choose All pages and Load code once.
- Under Place Code in, choose Head.
- Click Apply.
Verify
Open your published site in a browser, then check the XPmetric dashboard. The first pageview shows up within a few seconds.
Wix serves pages through its own app shell, so the first pageview can take a moment to appear. Open your published site in a normal browser tab, not the editor preview.
If nothing arrives, check the CSP troubleshooting guide or reply to your welcome email and we will look at it with you.