Skip to content
Website builders

Wix analytics with orders credited to visits

2 min read · Updated · By the Reveata team

Short answerAdd the Reveata snippet in Wix's Custom Code settings on all pages, in the head, loaded once. Page changes are counted, and orders can be credited to visits by the buyer's email, for people you identified on your site.

Wix keeps most of the site out of reach of your own code, which shapes what is possible. Reveata works within Wix's Custom Code feature: visits are fully tracked, and revenue is linked by email where Wix lets the money go through Stripe.

What you get

  • Every page view, including Wix's page changes without full page loads, when the code is loaded once.
  • Wix Stores and other Wix checkout revenue from your Stripe account, when Stripe is your Wix payment provider.
  • Orders credited to visits by the buyer's email, for people you identified on your site.
  • Stripe Payment Links on your pages credited with no code (Stripe Payment Links analytics).

How to install it

  1. In your site's dashboard, open Settings → Custom Code and select + Add Custom Code.
  2. Paste the snippet, name it Reveata, choose All pages and Load code once, and place it in Head.
  3. If Wix asks for a consent category, choose Analytics.
  4. Apply. Custom code runs only on a published site with a connected domain, which needs a Wix premium plan. Wix describes this in its custom code article (opens in a new tab).

How orders are matched

Wix creates the payment itself, so it carries no visitor id, and Wix page code (Velo) can't call the script. The link is the buyer's email: a second Custom Code snippet in Body – end identifies people when they submit a form with their email (the code is in the Wix install guide). A Stripe payment with the same email is credited to that visitor, even if it arrives later.

Check first that a recent order appears in your Stripe dashboard. Wix Payments is not a Stripe account you can connect, so those orders can't be imported; send them from your own server with the Payments API if you have one.

Limits

  • Forms Wix shows inside a frame are not seen by the identify code.
  • Wix removes custom code snippets when the primary domain changes. Add the snippet again afterwards.
  • Wix doesn't let you add attributes to its buttons: use Page visit, no code goals.
  • With the Analytics consent category, visits count only after people accept.

Frequently asked questions

The page source shows the script without its data-website-id. What now?

Use the form of the snippet that puts the settings in the script address (/js/script.js?website-id=ws_…), shown in the install guide.

Can I serve the script from my own subdomain?

Yes. The managed proxy needs one DNS record; if your domain uses Wix's name servers, add it under Domains → Manage DNS records.

Are visits to my .wixsite.com address counted?

Only if you add that address under Settings → General → Additional domains. Test on your connected domain.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
IntegrationStripe revenue analytics by traffic sourceReveata reads your Stripe payments, invoices, subscriptions, refunds and lost disputes through a read-only connection, then credits each payment to the visit that brought the buyer, so revenue sits next to traffic in every report.IntegrationBubble app analytics with ReveataPaste the Reveata snippet into Bubble's header script setting and deploy to Live. Every page and in-page navigation is counted, and signed-in users you identify with a Run javascript workflow are linked to their visits.IntegrationCarrd analytics for one-page sitesAdd the Reveata snippet to your Carrd site as a hidden Embed element placed in the head, then publish. Every visit is counted with its source, so you can see which links and channels bring signups and sales.IntegrationFramer analytics with sales credited to visitsAdd the Reveata snippet in Framer's Custom Code settings at the end of the head, on all pages, and publish. The script follows Framer's page changes, and sales from the checkouts your buttons link to are credited to their visits.IntegrationGhost analytics for posts, newsletters and membersPaste the Reveata snippet into Ghost's Site header code injection to track every page on Ghost(Pro) or self-hosted Ghost, with no theme change. A page only new members see turns each new membership into a goal with no code.IntegrationSquarespace analytics with Commerce orders matched to visitsPaste the Reveata snippet into Squarespace's Code Injection header and add a short call to the Order Confirmation Page field. Each order is then credited to the visitor who just bought.