How to add analytics to Framer with Clerion
To add analytics to Framer with Clerion, open Project Settings, then Custom Code, add a script in the head on all pages set to run once, paste the Clerion script tag and publish. Custom code does not run in Framer's preview, so check your published site.

To add analytics to a Framer site with Clerion, open Project Settings, choose Custom Code, add a script placed in the head on all pages, paste the Clerion script tag, and publish. Framer does not run custom code in the editor preview, so check the install on your published site, where your own visit should show up in Clerion almost at once.
Paste the Clerion script tag into Framer 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. Data is held in the EU, never sold, and the model only sees aggregates.
Why add analytics to Framer if it already has some?
Framer ships its own analytics. Its help centre describes them as cookieless, with visitors, pageviews, sources, UTM tags, pages, countries and devices, and history of 30 days on Basic and 90 days on Pro. For a portfolio, that may be all you need.
An AI startup usually has different questions. Is ChatGPT or Claude sending people, and do they sign up? Which source brings paying customers? Clerion answers those. It counts referrals from ChatGPT, Perplexity, Claude, Gemini and Copilot as their own channel, and revenue by source shows which channel brings customers. Framer's analytics and Clerion can run side by side; nothing about one stops the other.
What do you need before you start?
- A Clerion account and your site added in it. Signup is one email, and Clerion asks one question: which site to watch.
- The script tag copied from Clerion. It carries your real key and site id.
- Access to the Framer project with rights to edit settings and publish.
Clerion recognises a few builders from the page and shows their exact steps next to the snippet. Framer is not one of them today, so you will see the general steps. Clerion's install docs list Framer among the platforms that work: if you can add one line to the head, you can run Clerion.
How do you add the Clerion script tag in Framer?
These steps follow Framer's own help article on 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 Framer, open Project Settings and select the Custom Code tab. Older tutorials call this Site Settings.
- Click Add Script, or the + icon if you already have code there. Name it Clerion so you can find it later.
- Set the placement to the head. Start or end of the head both work, because the snippet only needs to be somewhere inside it.
- Leave Pages on all pages. A page without the tag is not counted.
- For Run, choose Once. Clerion counts client-side route changes as pageviews on its own, so the tag only needs to load once, and its docs ask for one copy per page.
- Paste the snippet, save, and publish the site.
The snippet loads deferred, so it does not slow the page.
How do you check it is working?
Open your published Framer site in another tab, not the editor preview. 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 Framer are short:
| Symptom | Likely cause | Fix |
|---|---|---|
| No visits at all | Site not republished after adding the code | Publish again in Framer |
| No visits from you | Your browser sends Global Privacy Control or Do Not Track | Test from another browser or a phone |
| Some pages missing | Script limited to selected pages | Set Pages to all |
| Counts look doubled | Snippet added twice, or also through a tag manager | Keep one copy |
| Custom Code tab unavailable | Your Framer plan or role | Check your plan and editor rights in Framer |
For the full list, see Analytics not tracking visits? A Clerion checklist.
Should you load it through Google Tag Manager instead?
No. Framer has a help article for adding Tag Manager, but Clerion's install docs advise against loading Clerion through it, because ad blockers block the tag manager itself on many devices. Paste the line directly into Framer's custom code. The reasoning is in Should you install Clerion with Google Tag Manager?
Do you need a cookie banner on Framer after adding Clerion?
Not for Clerion. It counts visits without cookies and honours Global Privacy Control and Do Not Track. Other tools you add to Framer may still need one. Our guide on whether you need a cookie banner for website analytics covers the detail.
What will you see once it is running?
Traffic, pages, referrers and campaigns arrive from the first visitor, along with clicks, scroll depth, forms, speed and errors, with no event plan to write. AI assistants show up as their own channel, which matters because some of it lands in Direct in other tools. See how to track ChatGPT traffic to your website and How to track Claude traffic in your analytics.
The daily briefing gets sharp after about a week of data, rather than guessing from a day of noise. Every claim in it comes from your own data, not the model.
If you would rather ask than read, connect the Claude connector. In claude.ai you add Clerion as a connector, approve it in Clerion, and ask questions like which AI assistant sent visitors last week. The model reads counts and averages, never visitor rows. Setup is on the MCP page.
Running a different builder? The same one-line install is written up for Webflow, WordPress and Next.js and Vercel, and the short version is paste this one line.
Add Clerion to your Framer site, then connect Claude
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 Framer?
In Project Settings, open the Custom Code tab, click Add Script, place it in the head, apply it to all pages, paste the snippet and publish. Older tutorials call this area Site Settings.
Why is Clerion not counting visits from my Framer preview?
Framer does not run custom code in the editor preview. Open the published site instead. If your browser sends Global Privacy Control or Do Not Track, Clerion will not count you either, so test from another browser.
Should the Clerion script run once or on every page visit in Framer?
Choose Once. Clerion counts client-side route changes as pageviews by itself, and its docs ask for one copy of the tag per page.
Do I need a cookie banner after adding Clerion to Framer?
Not for Clerion. It sets no cookies and honours Global Privacy Control and Do Not Track. Other scripts you add to Framer may still need one.
Can I keep Framer's built-in analytics?
Yes. Framer's analytics and Clerion run side by side. Clerion adds AI-assistant traffic as its own channel, revenue by source and a daily briefing, and connects to Claude.