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

  1. Open your site's dashboard and go to Settings → Custom code (in the Advanced section).
  2. Click + Add Custom Code and paste the tracking snippet.
  3. Give it a name such as XPmetric.
  4. Under Add Code to Pages, choose All pages and Load code once.
  5. Under Place Code in, choose Head.
  6. 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.