Trackthemetric + Wix
Follow these steps to integrate Trackthemetric analytics into your Wix site.
Option 1Add tracking script using Custom Code
Add the script via Wix Tracking & Analytics so it loads on all pages.
1. Open your Wix Editor and go to Settings → Tracking & Analytics.
2. Click + New Tool and select Custom.
3. In the code box, paste the following snippet:
<script defer id="TrackTheMetric" data-website-id="YOUR_WEBSITE_ID" data-domain="YOUR_DOMAIN.COM" src="https://app.trackthemetric.com/tracker.js" ></script>
4. Set Add Code to Pages to All pages and Place Code in to Head.
Replace the YOUR_WEBSITE_ID
and YOUR_DOMAIN.COM
with your actual website ID and root domain.
Custom code features require a Wix Premium plan. The tracking script will not work on the free plan.
5. Click Apply.
Option 2Using an HTML embed
You can also add the script via an HTML embed on a page.
1. In the Wix Editor, click Add (+) → Embed → HTML iframe.
2. Paste the same snippet into the element and position it in your page header.
<script defer id="TrackTheMetric" data-website-id="YOUR_WEBSITE_ID" data-domain="YOUR_DOMAIN.COM" src="https://app.trackthemetric.com/tracker.js" ></script>
3Verify the installation
After implementing:
- Publish your Wix site and visit your live website.
- Open your Trackthemetric dashboard.
- It might take a few minutes for the first pageviews to appear.