What you need
A Wix premium plan, a published site and a connected domain. Free Wix sites do not show the Custom Code option, so this method will not work on them.
Add the code
In your site dashboard open Settings, scroll to the advanced section and choose Custom Code. Click + Add Custom Code, paste your BYOViral tracking code (in the dashboard, open Websites, choose your site and press Edit; the code is at the bottom of the page), name it BYOViral, set Add Code to Pages to All pages and Load code once, set Place Code in to Head and press Apply.
Check that it works
Custom code only runs on the live site, not in the editor preview. Open the published site in a private window and look at the Realtime report in BYOViral.
If you change domain
Wix ties custom code to the connected domain. If you switch domains, open Custom Code again and make sure the snippet is still there.
Frequently asked questions
Why is Custom Code missing in my settings?
Your site is on the free plan or has no connected domain. Wix requires both for custom code.
Does Wix's own analytics conflict with BYOViral?
No. They run side by side. Expect different numbers, because the two tools count and filter differently.
Will single-page navigation on Wix be counted?
Yes. The BYOViral script records page changes made without a full reload.
Try BYOViral free
Privacy-first analytics with no cookies and a real free tier.
Create your free account →