klickbeetracking
Setup guides

WordPress cookieless analytics: install in 5 minutes

Published November 9, 2026

Add cookieless analytics to WordPress with one script tag in the page head. Which plans allow it, two ways to paste the tag, what is measured, and how to check it works.

You can add cookieless analytics to WordPress by pasting one script tag into the head of every page. On a self-hosted WordPress site you can do it with a small piece of code or a header plugin. On WordPress.com you need a paid plan first. The whole job takes about five minutes, plus a quick check that data arrives.

Klickbee Tracking has no app and no plugin to find in a directory. It installs with a script tag, or with an npm package for JavaScript frameworks. On WordPress, the script tag is the right route, and this guide covers it end to end. I checked the WordPress.com and WordPress developer pages cited below in November 2026.

Which WordPress plans let you add a script?

It depends on which WordPress you run.

Self-hosted WordPress (the software from wordpress.org, installed on your own hosting) has no restriction. You control the theme and the plugins, so you can put a script in the head.

WordPress.com is stricter. According to WordPress.com's guide to adding code, free sites have limits on the code they can run, and JavaScript is allowed on sites with a plugin-enabled plan once hosting features are activated. The guide to installing plugins says plugins are available on the Personal, Premium, Business and Commerce plans, and not on free sites.

In short:

  • Free WordPress.com site: you cannot paste a tracking script. Upgrade first, or move to self-hosted WordPress.
  • Paid WordPress.com plan: activate your plan's features if you have not, then use a header plugin. The activation guide explains how, and notes that your default site address changes to a wpcomstaging.com address when you do.
  • Self-hosted WordPress: any of the methods below.

Plans change, so check the pages above before you pay for anything.

What do you need before you start?

Two things from Klickbee: a site and its public key.

  1. Create your site at tracking.klickbee.com, verify your email, and name your first site.
  2. Open Settings, then Projects, and expand your site. Copy the public key. It starts with pk_ and is not a secret, because it sits in your page source anyway.
  3. In the same panel, fill in Allowed origins with one origin per line, for example https://example.com and https://www.example.com. Matching is strict on scheme, host and www, so list each form your site uses.

The install guide in the help center shows the exact snippet with your key already filled in. It looks like this:

<script src="https://tracking.klickbee.com/t.js" data-key="pk_xxx" defer></script>

Replace pk_xxx with your own key.

How do you paste the script tag into WordPress?

Pick one method. Do not use two, even though loading the script twice is harmless.

Method 1: a header plugin (works on WordPress.com and self-hosted)

This is the easiest route and the one WordPress.com itself documents. Its guide to adding code to headers tells you to install and activate the free Insert Headers and Footers plugin by WPCode, open Code Snippets, then Header and Footer, paste the code into the Header box and click Save Changes.

Paste the script tag into the Header box and save. The tag will then load on every page.

Method 2: a few lines in a child theme (self-hosted)

If you prefer no extra plugin, hook into wp_head. WordPress describes wp_head as the action that fires in the head of the page, and a contributor note on that page shows the same pattern for inline scripts. In a child theme's functions.php, or in a small custom plugin, add:

add_action( 'wp_head', function () {
	echo '<script src="https://tracking.klickbee.com/t.js" data-key="pk_xxx" defer></script>' . "\n";
} );

Use a child theme or your own plugin, not the parent theme. A theme update can overwrite changes made directly in the parent theme, and your tracking would silently stop.

What about page builders and block themes?

Block themes do not have the classic header file, so the plugin method is simpler there. Page builders often have their own "custom code in head" setting, and that works too, as long as the tag ends up in the head of all pages and not only on one.

If you use a caching plugin

Purge the cache after you add the tag. Otherwise visitors may keep receiving the cached pages that do not contain it.

What gets measured without a consent banner?

Klickbee's measurement sets no cookie. The tracker keeps a random visitor id in the browser's local storage, renewed every 13 months, and a session id in session storage. The raw IP address is never stored: it is truncated before a coarse lookup that gives country, region and city.

It was designed with the CNIL audience-measurement exemption in mind, for audience measurement only. That is not a statement that your site is exempt. Whether you need consent depends on your site, your country and your setup, and you stay responsible for that choice. The exemption is French, and other countries differ. Our article on the CNIL exemption conditions goes through them.

Two defaults matter here. With the script tag, click capture and session replay are on unless you turn them off. Replay is not part of the audience-measurement exemption, and in France it generally needs consent. If you only want cookieless audience measurement, switch replay off:

<script src="https://tracking.klickbee.com/t.js" data-key="pk_xxx" data-replay="false" defer></script>

Campaign data such as UTMs and ad click ids also goes beyond the exemption. If your site needs a consent step, add data-require-consent="true". Nothing is tracked until your consent banner calls window.klickbee.grantConsent(). The privacy and consent page explains how. See also what cookieless analytics covers.

This is information, not legal advice.

How do you check that it works?

Open the Install snippet panel in Settings, then Projects. It shows an install status card.

  1. Visit your own site in a normal browser window. Visitors that look like bots are ignored on purpose, so a script or command-line fetch will not show up.
  2. Look at the card. "Waiting for data" means nothing has arrived. "Installed" means at least one event has been received, and the "Last data" line tells you how recent the latest one is.
  3. Use the Test pixel button for a quick signal. It tells you whether the script loaded and initialised. It only proves the script loads, so if you filled in Allowed origins, trust the status card.

If nothing shows up, the usual suspects are a wrong data-key, an Allowed origins list that does not include your exact address, a cached page, or an ad blocker in your own browser. The troubleshooting page walks through them.

Running a shop on WordPress? The same script tag works there, and the Shopify install guide covers the other big store platform.

Ready to try it?

Create a free site. The Free plan includes one site and 1,000 sessions per month. Paste the tag, visit your site, and the status card tells you whether data is arriving.

FAQ

Is there a Klickbee plugin for WordPress?

No. There is no plugin and no app. You add one script tag to the head of your pages, with a header plugin or a few lines in a child theme. JavaScript frameworks can also use the npm package.

Can I install it on a free WordPress.com site?

Not as a script. WordPress.com says free sites have limits on custom code, and that JavaScript needs a plugin-enabled plan with hosting features activated. A paid plan or self-hosted WordPress solves it.

Do I need a cookie banner to use it?

It depends on your site and country, and the site owner decides. Klickbee's measurement sets no cookie, but replay and campaign data go beyond the CNIL audience-measurement exemption. Klickbee also has a free built-in consent banner, off by default, if you need one.

Will it slow my site down?

The script tag uses the defer attribute, which means the browser downloads it without blocking the page and runs it after the page is parsed. I have no speed benchmark to quote, so measure your own site before and after.

How do I know the data is real?

Visit your site yourself, then check the status card for a recent "Last data" time. The Overview page also stops showing "No data yet" once the first event arrives.

← All articles