How to add analytics to Wix with Clerion
To add analytics to Wix with Clerion, go to Settings, Custom Code, Add Custom Code, paste the Clerion script tag and choose All pages and Head. Wix only runs custom code on a published site with a connected domain, so you need a Premium plan.
To add analytics to a Wix site with Clerion, go to Settings in your site's dashboard, open Custom Code, click Add Custom Code, paste the Clerion script tag, and pick All pages and Head. Wix only runs custom code on a published site with a connected domain, which means a Premium plan.
Paste the Clerion script tag into Wix and see your first visit
14-day trial, no card to sign up. A card is only asked if you start a paid plan trial from the upgrade modal.
What is Clerion?
Clerion is website intelligence for AI founders. You add one script tag, and each morning it reads your site and tells you the one thing worth doing, in a sentence, with your own numbers as the evidence. It counts AI-assistant traffic as its own channel, ties signups and revenue to their source, and connects to Claude so you can ask about your traffic from the chat.
It sets no cookies, so it needs no consent banner of its own. Data is held in the EU, never sold, and the model only sees aggregates.
Why add analytics to Wix if it already has some?
Wix has its own analytics, and for many small sites that is enough. The question founders now ask is narrower: is ChatGPT, Perplexity or Claude sending people to my site, which pages do they land on, and do those people sign up or pay?
Clerion counts referrals from ChatGPT, Perplexity, Claude, Gemini and Copilot as their own channel instead of folding them into referral or direct. It also records pageviews, referrers, campaigns, clicks, scroll depth, forms, outbound links, speed and JavaScript errors without an event plan. Wix's panels and Clerion can run side by side.
What do you need before you start?
- A Clerion account with your site added. Signup is one email, and Clerion opens on one question: which site to watch.
- The script tag copied from Clerion. It carries your real key and site id.
- A Wix site that is published and connected to your own domain.
The last point is the one that stops people. Wix's help centre says that before you add custom code, the site must be published and have a connected domain. Connecting your own domain is one of the things a Wix Premium plan adds, and Clerion's install docs put it plainly: Wix only allows custom code on a premium plan connected to your own domain.
| Your Wix site | Can you add Clerion through Custom Code? |
|---|---|
| Free site on a wixsite.com address | No, there is no connected domain |
| Premium plan, own domain connected, site published | Yes |
| Premium plan, domain not connected yet | Not until the domain is connected |
When you add your site, Clerion recognises Wix from the page and shows the Wix steps next to the snippet. If someone else looks after the site, send them the snippet from the install screen; they get the line and the steps, and their reply comes to you.
How do you add the Clerion script tag in Wix?
These steps follow Clerion's install docs and Wix's help article on embedding custom code.
- In Clerion, copy the snippet from the install screen. It looks like this, with your key and site id in place of the placeholders:
<script
src="https://api.getclerion.com/sdk/clerion-analytics.js"
data-api-key="YOUR_API_KEY"
data-website-id="YOUR_WEBSITE_ID"
></script>
- In Wix, go to Settings in your site's dashboard.
- Click Custom Code in the Development & integrations section.
- Click + Add Custom Code at the top right.
- Paste the snippet into the text box and give it a name you will recognise later, such as Clerion.
- Under Add Code to Pages, choose All pages. Wix says this also covers pages you create later.
- Under Place Code in, choose Head.
- Click Apply.
The snippet loads deferred, so it does not slow the page. Add it once. Two copies on a page, for example one site-wide and another on a single page, count every visit twice.
If you already read our general guide, paste this one line, this is the same line in Wix's spot for it.
Load once per visit, or on each page?
With All pages selected, Wix asks whether to load the code once per visit or on each page your visitor opens. Clerion's install docs ask only for All pages and Head and do not name one of the two, so do not guess: test it. After you apply the code, open three pages on your live site and check in Clerion that each one shows up as a pageview, once. If pages are missing or doubled, switch the option, apply, and check again. It takes a minute and it settles the question for your site.
Is there anything Wix does differently?
Three details from Wix's own help centre are worth knowing before you rely on the numbers.
| Wix behaviour | What it means for Clerion |
|---|---|
| Code snippets are tied to a specific domain | If you assign a different domain to the site, Wix deletes the snippets. Add the Clerion code again after a domain change. |
| New frontend security measures since December 2025 | Wix says some snippets that used to work may be blocked until the provider updates them. If Clerion stops counting, tell us at hello@getclerion.com. |
| Google Analytics, Google Tag Manager and some ad pixels do not work through custom code | Wix connects those through its marketing integrations instead. Clerion is not on that list; the live check below tells you it runs. |
Can Clerion show revenue by source on Wix?
Clerion's revenue by source card fills in when a page running the snippet sends one custom event with a value at the moment someone pays, for example a purchase event with the amount. Clerion does not read amounts from a payment provider, so the event has to carry the value itself.
We have not tested this on Wix checkout or thank-you pages, so we do not promise it. If you try it, check that the event appears in the All events table before you rely on the card. What you get without it is the part before checkout: which sources, AI assistants included, bring people to your pages and what they do there. For the idea behind it, see how do I track revenue from ChatGPT traffic.
How do you check it is working?
Open your live site in another tab, on your own domain, ideally in a private window. The install screen in Clerion updates on its own, Clerion emails you when the first visit lands, and the live pulse on Overview refreshes every 30 seconds.
If nothing arrives, use Pasted it? Check my site on the install screen. It fetches your live page and says whether the snippet is there, missing, or carrying an old key. The usual causes on Wix are short:
- The site is not published, or the domain is not connected, so the custom code does not run.
- The code went onto chosen pages instead of All pages.
- The snippet was deleted after a domain change.
- Your browser sends Global Privacy Control or Do Not Track, which Clerion honours by not counting you.
- An ad blocker or privacy extension on your own browser.
Our checklist for analytics not tracking visits walks through the rest.
Should you use Google Tag Manager on Wix instead?
No. Clerion's docs advise against loading it through Tag Manager, because ad blockers block the tag manager on a large share of devices, which gives back the accuracy you installed Clerion for. Paste the line straight into Custom Code. We explain the trade-off in should you install Clerion with Google Tag Manager.
What will you see once it is running?
Visits from ChatGPT, Perplexity, Claude, Gemini and Copilot appear as their own channel. If you are new to why that matters, our guides on how to track ChatGPT traffic to your website and why ChatGPT traffic shows as direct in Google Analytics cover the background. For single assistants, see how to track Claude traffic and how to track Gemini traffic.
The first briefing works from your first visitor and gets sharper after about a week of data. Because Clerion sets no cookies, it adds no consent banner of its own; our guide on whether you need a cookie banner for website analytics explains where that line sits. On other platforms the same line goes in a different place: see WordPress, Webflow, Framer, Shopify and Squarespace.
Add the Clerion script tag to your Wix site
14-day trial, no card to sign up. A card is only asked if you start a paid plan trial from the upgrade modal.
Frequently asked questions
Where do I paste an analytics script in Wix?
In your site's dashboard go to Settings, then Custom Code in the Development & integrations section, click Add Custom Code, paste the snippet, choose All pages and Head, and click Apply.
Can I add a tracking script to a free Wix site?
No. Wix says custom code needs a published site with a connected domain, and connecting your own domain needs a Premium plan. A free wixsite.com site cannot run the Clerion snippet this way.
Should the Clerion code load once per visit or on each page in Wix?
Clerion's install docs ask for All pages and Head without naming one. Open three pages on your live site and check that each shows up once in Clerion; if pages are missing or doubled, switch the option and check again.
Why did Clerion stop counting visits on my Wix site?
Wix deletes custom code snippets when you assign a different domain to the site, so add the code again after a domain change. Then use Pasted it? Check my site on the Clerion install screen to confirm the snippet is live.
Do I need a cookie banner after adding Clerion to Wix?
Not for Clerion. It sets no cookies and honours Global Privacy Control and Do Not Track. Other code or apps on your Wix site may still need one.