InstallPlatforms
Wix
Add trckable to a Wix site with Custom Code in the settings. A paid plan with a connected domain is needed.
Wix runs custom code on every page from one place in the dashboard. It does not run in the editor, only on the published site.
Steps
- Open your site's dashboard and go to Settings.
- Under Development & integrations, click Custom code.
- Click Add Custom Code and paste the script tag below.
- Name it, choose All pages, and place it in Head.
- Click Apply, then publish the site.
<script
defer
data-site="tkb_a1b2c3d4"
data-domain="example.com"
src="https://stats.example.com/js/tkb_a1b2c3d4.js">
</script>Check it works
Open your site in a private window, then open your trckable dashboard and look at Live. Your visit shows up within a minute.
If it does not show
- Custom code needs a paid Wix plan and a connected domain. On a free Wix site the setting is missing or inactive.
- The editor and preview never run it. Open the published site.
- The code was added to one page only. Open it again and choose All pages.
Still stuck? Run npx trckable doctor against your site, or see the script tag page.