Skip to main content
6 min read

Wix Integration

Add privacy-focused, cookieless-capable analytics to your Wix site in under five minutes. Zenovay works on Wix Free, Premium, and Business / VIP plans, with deeper hooks available for Wix Velo developers.

The fastest path is Settings → Custom Code → Head. You need a Wix Premium plan or higher to use Custom Code.


Quick Start

StepWhereWhat you do
1Zenovay dashboardCopy your tracking snippet
2Wix admin → Settings → Custom CodePaste the snippet into a new Head code element
3Publish your siteClick Publish to deploy the change
4Zenovay dashboardWait 1–2 minutes, then check real-time visitors

Wix Custom Code lets you inject any HTML snippet into the <head> of every page. It's the same approach Wix recommends for Google Analytics and Meta Pixel.

Step-by-step

  1. Open your Wix site in the editor or dashboard.
  2. Go to Settings (gear icon, left sidebar) → Custom Code.
  3. Click + Add Custom Code.
  4. Paste the Zenovay snippet from your dashboard:
<script defer data-tracking-code="YOUR_TRACKING_CODE" src="https://api.zenovay.com/z.js"></script>
  1. Configure the placement:
    • Add Code to Pages: All pagesLoad code on each new page
    • Place Code in: Head
    • Name: Zenovay Analytics (so you can find it later)
  2. Click Apply.
  3. Click Publish at the top of the editor — Custom Code only runs on the published site, not in preview.

Verify the install

Open your published site in an incognito window and view the page source (Cmd/Ctrl+U). Look for the line <script defer data-tracking-code=.... Then open the Zenovay real-time view — your own visit should appear within ~30 seconds.


Method 2: Wix Velo (for developers)

If your site uses Wix Velo (formerly Corvid) and you need to track router pages, dynamic page transitions, or member-only events, install Zenovay through Velo instead. This gives you access to the full window.zenovay() event API.

Add the script via Velo

In the Velo Dev Mode of your site, open masterPage.js and add:

import wixWindow from 'wix-window';

$w.onReady(() => {
  if (wixWindow.rendering.env !== 'browser') return;

  const s = document.createElement('script');
  s.defer = true;
  s.src = 'https://api.zenovay.com/z.js';
  s.setAttribute('data-tracking-code', 'YOUR_TRACKING_CODE');
  document.head.appendChild(s);
});

Track custom events

After the script loads you can fire events from any Velo page:

$w('#submitButton').onClick(() => {
  if (window.zenovay) {
    window.zenovay('track', 'lead_form_submitted', {
      form_id: 'homepage-cta',
      plan_interest: $w('#planDropdown').value,
    });
  }
});

Identify members

If you use Wix Members, you can attach a stable visitor ID:

import { currentMember } from 'wix-members';

currentMember.getMember()
  .then(member => {
    if (member && window.zenovay) {
      window.zenovay('identify', {
        userId: member._id,
        email: member.loginEmail,
        name: member.profile?.nickname,
      });
    }
  });

Tracking Wix-specific events

Wix featureHow to track
Contact form submitSet up a custom event via Wix Automations or Velo onWixFormSubmit
Wix Stores purchaseUse the revenue API with the order webhook, or fire window.zenovay('track', 'purchase', { revenue, currency }) from the thank-you page
Wix Bookings appointmentVelo wix-bookings-backend server event → call our server-side tracking API
Newsletter signupVelo onWixFormSubmit on the signup form, fire window.zenovay('track', 'signup', { source: 'newsletter' })

Plan requirements & limits

  • Wix Free: Custom Code is not available. You must upgrade to Premium ($16/mo or higher) for any third-party script.
  • Wix Premium (Combo, Unlimited, Pro): Custom Code works on all pages.
  • Wix Business / VIP: Custom Code + Wix Velo + server-side hooks available.
  • Wix Studio (the newer editor): Custom Code lives under Site Settings → Tracking & Analytics → + New Tool. Choose Custom and paste the same snippet into the Head slot.

Common gotchas

Snippet only fires on the published site. Wix Custom Code is intentionally stripped from the preview/editor. If you don't see traffic, make sure you clicked Publish and you're testing the live URL (not editor.wix.com).

Caching delay. Wix caches the published HTML aggressively. After publishing, allow 5–10 minutes before declaring the install broken — and force-refresh with Cmd/Ctrl+Shift+R when testing.

Wix Studio uses a different menu. In Wix Studio (rolled out in 2024) the path is Settings → Tracking & Analytics, not Custom Code. The snippet itself is identical.

SPA navigation isn't auto-tracked on all themes. Wix renders most pages as full server-side templates, so default pageview tracking works. If you use a Velo router or a heavily SPA-style template, call window.zenovay('trackPageView') manually on route change.

Don't double-install. If you previously pasted the snippet into the theme via a Wix App and are now using Custom Code, you'll count each visit twice. Pick one method.


Troubleshooting

SymptomLikely causeFix
No data in dashboardSite not publishedClick Publish in the editor
No data in dashboardCustom Code targeting only specific pagesRe-check Add Code to Pages → All pages
Duplicate pageviewsSnippet pasted in both Custom Code and themeRemove one
Data only on some pagesLoad on first page only selectedChange to Load code on each new page
Real-time view empty but Network tab shows /event 200Ad-blocker on your own browser blocking the dashboard callTest in incognito with extensions off

Privacy & compliance

Zenovay's tracker is cookieless-capable. If you're embedding on a regulated site (EU/UK/CH/Brazil/California), you can opt into cookieless mode by adding data-cookieless="true" to the script tag:

<script defer
        data-tracking-code="YOUR_TRACKING_CODE"
        data-cookieless="true"
        src="https://api.zenovay.com/z.js"></script>

In this mode no cookies or local storage entries are written — visitor IDs live only for the current tab. See the Privacy Compliance guide for full detail.



Need help? Contact [email protected] or visit our Help Center.

Was this page helpful?