Clerion
  • Explore ClerionFeaturesUse casesMCP server
    Feature pagesAI trafficRevenue by sourceCustom eventsError intelligenceBriefing and signalsSecurity
  • Docs
  • Pricing
  • Privacy-first toolsPlausibleFathomMatomo
    Large platformsGoogle AnalyticsMixpanelCloudflare Web AnalyticsPostHogAmplitude
  • LearnBlogHelp centreChangelog
    CompanyAbout usBrandContact
Sign inStart free trial ›
  • Explore ClerionFeaturesUse casesMCP server
    Feature pagesAI trafficRevenue by sourceCustom eventsError intelligenceBriefing and signalsSecurity
  • Docs
  • Pricing
  • Privacy-first toolsPlausibleFathomMatomo
    Large platformsGoogle AnalyticsMixpanelCloudflare Web AnalyticsPostHogAmplitude
  • LearnBlogHelp centreChangelog
    CompanyAbout usBrandContact
  • Contact sales
Sign inStart 14-day trial

On this page

  • What do you need before you start?
  • Which way should you install it on WordPress?
  • How do you add Clerion with the WPCode plugin?
  • How do you add it in the theme instead?
  • How do you check Clerion is counting visits?
  • Do you need a cookie banner for this?
  • What will you see once it is running?
  • Next step
  • Frequently asked questions
  • Sources
  1. Blog
  2. How to install Clerion on WordPress
  1. Blog
  2. How to install Clerion on WordPress

How to install Clerion on WordPress

Clerion Research Team26 November 20266 min read

To add analytics to WordPress with Clerion, install the free WPCode plugin, open Code Snippets, Header & Footer, paste the Clerion script tag into Header and save. Developers on a classic theme can paste it into a child theme's header.php instead.

Start your Clerion trial and get your snippet

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 do you need before you start?

Three things: a Clerion account, admin access to your WordPress dashboard, and the snippet Clerion gives you after you add your site. When you type your site's address into Clerion, it recognises WordPress from the page itself and shows the WordPress steps next to your snippet. This guide is the same steps with a little more context.

The snippet looks like this. The copy inside Clerion carries your real key and site id, so copy it from there rather than from this page.

<script
  src="https://api.getclerion.com/sdk/clerion-analytics.js"
  data-api-key="YOUR_API_KEY"
  data-website-id="YOUR_WEBSITE_ID"
></script>

It loads deferred, so it does not slow the page, and it sets no cookies. If you want the plain-HTML version of these steps, see Paste this one line.

Which way should you install it on WordPress?

There are two routes. Clerion's install docs recommend the first.

Route Best for Survives a theme change
WPCode plugin, Header field Most sites, no code editing Yes, the code lives in the plugin
Theme file header.php in a child theme Developers on a classic theme No, it moves with the theme

How do you add Clerion with the WPCode plugin?

WPCode (formerly Insert Headers and Footers) is a free plugin on WordPress.org. Its Header field prints whatever you paste into the head of every page.

  1. In your WordPress dashboard, go to Plugins, Add New, search for WPCode and install and activate it.
  2. Open Code Snippets, then Header & Footer.
  3. Paste the Clerion snippet into the Header box. Include the opening and closing script tags.
  4. Click Save Changes.
  5. If you run a caching plugin or host-level cache, clear it so visitors get the new page.

That is the whole install. Because the code is stored by WPCode and not in your theme, switching or updating your theme does not remove it.

On WordPress.com (the hosted service), installing plugins needs a paid plan. WordPress.com lists Personal, Premium, Business and Commerce as the plans that allow it. On a self-hosted WordPress site, any admin can install the plugin.

How do you add it in the theme instead?

If you prefer not to add a plugin, paste the snippet into header.php just before the closing head tag. Do this in a child theme. A parent theme update can overwrite header.php, and your snippet would go with it. The WordPress developer handbook explains how child themes work if you do not have one yet.

Newer block themes (the ones you edit in the Site Editor) usually have no header.php at all. On those, the plugin route is the simple one.

How do you check Clerion is counting visits?

Open your site in another tab. Clerion's install screen updates on its own, and Clerion emails you when the first visit lands. The live pulse on the Overview refreshes every 30 seconds.

If nothing shows up, use "Pasted it? Check my site" on the install screen. It fetches your live page and tells you whether the snippet is there, missing, or carrying an old key. The usual WordPress causes:

  • A cached page. The snippet is saved but visitors still get the old HTML. Clear the cache.
  • Two copies. The snippet is in the theme and in WPCode, so every visit counts twice. Keep one.
  • Loaded through Google Tag Manager. Clerion's docs advise against this, because ad blockers block the tag manager on many devices and the tag never runs. Paste the line directly.
  • Your own browser opts out. Clerion does not count browsers with Global Privacy Control or Do Not Track on.

More detail is in Clerion's check your installation docs.

Do you need a cookie banner for this?

Not for Clerion. It counts visits without setting cookies, holds data in the EU, and never sells it. Other plugins on your site may still need consent, so check those separately. The longer answer is in do you need a cookie banner for website analytics.

What will you see once it is running?

Clerion is website intelligence for AI founders: one script tag, then a short daily briefing that says the one thing worth doing on your site, with your own numbers as evidence. Out of the box it counts pageviews, referrers and campaigns, and it shows referrals from ChatGPT, Perplexity, Claude, Gemini and Copilot as their own channel. If you are on WordPress because you publish a lot, that AI channel is usually the first thing worth reading. For the background, see how to track ChatGPT traffic to your website and how to track Perplexity traffic.

The briefing gets useful once it has about a week of data. Until then, the numbers fill in from your first visitor.

Next step

Install WPCode, paste the line into Header, save, and visit your site once.

Add Clerion to your WordPress 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 the Clerion script in WordPress?

The easiest place is the Header box in the free WPCode plugin, under Code Snippets, Header & Footer. Save changes and it loads on every page. You can also paste it into header.php in a child theme, just before the closing head tag.

Can I add Clerion on a free WordPress.com site?

WordPress.com only allows plugin installs on paid plans: Personal, Premium, Business and Commerce. The WPCode route needs one of those. Self-hosted WordPress sites have no such limit.

Why not paste it straight into my theme's header.php?

A parent theme update can overwrite header.php and remove the snippet. If you edit the theme, use a child theme. Block themes often have no header.php, so the plugin route is simpler there.

I pasted the snippet but Clerion shows no visits. Why?

Most often a cache is serving the old page, so clear it. Then use Pasted it? Check my site on the Clerion install screen. Also check you did not load it through Google Tag Manager, which ad blockers block.

Should I load Clerion through Google Tag Manager on WordPress?

Clerion's install docs advise against it, because ad blockers block the tag manager on many devices and the tag never runs. Paste the script directly with WPCode or in the theme.

Sources

  • Clerion docs: Quickstart
  • Clerion docs: Install on your platform
  • Clerion docs: Script tag
  • Clerion docs: Check your installation
  • WPCode on WordPress.org
  • WPCode docs: Using the Global Header & Footer settings
  • WordPress.com Support: Install a plugin
  • WordPress Developer Resources: Child Themes
clerion-blog-writerwordpressinstallscript tagadd analytics to wordpress
Clerion

Website intelligence for AI founders.See what AI sends you, and what to fix.

Start free trial ›

14 days free, no card.

Keep reading

All writing →
  • How to track Claude traffic in your analyticsArticle
  • Should you install Clerion with Google Tag Manager?Article
  • How to install Clerion on WebflowArticle
  • Do you need a cookie banner for analytics?Guide
  • Best AI analytics toolsGuide
  • Every Clerion featurePage
Next step

Analytics with no cookie banner and nothing to consent to.

Written from real site data by the team building Clerion.
Start cookie-free ›
Clerion

Website intelligence for AI founders.

Product

  • Features
  • Use cases
  • Docs
  • Quickstart
  • MCP server
  • Pricing
  • Sign in

Compare

  • vs Google Analytics
  • vs Plausible
  • vs Fathom
  • vs Matomo
  • vs Mixpanel
  • vs Cloudflare
  • vs PostHog
  • vs Amplitude

Resources

  • Blog
  • Help centre
  • Is it agentic?
  • What is SI?
  • What is Clerion?
  • Changelog
  • Sitemap

Company

  • About us
  • CareersHiring
  • Brand
  • Contact
  • Security
  • Privacy policy
  • Terms

Compliance

  • GDPR
  • Schrems II
  • ePrivacy
  • PECR
  • COPPA
  • CCPA
  • Our data journey
Product
  • Features
  • Use cases
  • Docs
  • Quickstart
  • MCP server
  • Pricing
  • Sign in
Compare
  • vs Google Analytics
  • vs Plausible
  • vs Fathom
  • vs Matomo
  • vs Mixpanel
  • vs Cloudflare
  • vs PostHog
  • vs Amplitude
Resources
  • Blog
  • Help centre
  • Is it agentic?
  • What is SI?
  • What is Clerion?
  • Changelog
  • Sitemap
Company
  • About us
  • CareersHiring
  • Brand
  • Contact
  • Security
  • Privacy policy
  • Terms
Compliance
  • GDPR
  • Schrems II
  • ePrivacy
  • PECR
  • COPPA
  • CCPA
  • Our data journey

Clerion (“Clerion”), at getclerion.com and clerion.si, is website intelligence for AI founders: web analytics, AI-assistant traffic, conversions and revenue by source, SEO and AI-readiness, speed and errors from one script tag. It finds the patterns in the data, ranks what changed and tells you the fix. Designed with taste: one typeface, no accent colour, and nothing that moves unless it tells you something. AI is now also called SI, super intelligence; the channel is the same. It sets no cookies, stores no personal data, needs no consent banner, and holds data in the EU. Every briefing is written from your own numbers, and every figure in it comes from your data rather than from the model. Clerion is a software product and does not provide marketing, legal or advisory services. We have no ad budget: if Clerion helps you, telling a friend does more for us than any campaign could.

© 2026 Clerion. Independent and self-funded.

Served from the Netherlands.