Cookieless analytics on WooCommerce: install in 5 minutes
Published November 12, 2026
Add cookieless analytics to a WooCommerce store with one script tag in the page head. What your plan must allow, where to paste the tag, what is measured and how to check it.
WooCommerce is a plugin that runs on WordPress, so you add cookieless analytics the way you do on any WordPress site: one script tag in the head of every page. On self-hosted WordPress you can do it with a few lines of code or a header plugin. On WordPress.com you need a paid plan first. The job takes about five minutes, plus a check that data arrives.
Klickbee Tracking has no WooCommerce plugin and no app in a directory. It installs with a script tag, or with an npm package for JavaScript frameworks. On WooCommerce, the script tag is the right route. I checked the WordPress.com and WordPress pages cited below in November 2026.
Does WooCommerce let you add a script?
It depends on how the store is hosted.
According to its page on WordPress.org, WooCommerce is "the open-source ecommerce platform for WordPress". That means two situations:
- Self-hosted WordPress with the WooCommerce plugin. You control the theme and the plugins, so you can put a script in the head. No plan restriction applies.
- A store on WordPress.com. WordPress.com says that adding code to your site header is available on the Personal, Premium, Business and Commerce plans, and that free sites must upgrade. Installing plugins is also reserved for the paid plans. A free WordPress.com site cannot load your own tracking script.
Plans change, so check those two pages before you pay for anything. If your store is on a hosted builder that is not WordPress, this guide does not apply.
What do you need from Klickbee first?
A site and its public key.
- Create your account at tracking.klickbee.com and name your first site.
- Open Settings, then Projects, and expand your site. Copy the public key. It starts with
pk_and is not a secret, since it sits in your page source anyway. - In the same panel, fill in Allowed origins, one origin per line, for example
https://shop.example.comandhttps://www.shop.example.com. Matching is strict on scheme, host and www, so list every form your store uses.
The install guide in the help center shows the exact snippet with your key 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 a WooCommerce store?
Pick one method.
Method 1: a header plugin
This is the simplest route, and the one WordPress.com itself documents. Its guide 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 in the Header box and save. Paste the script tag there and it loads on every page, including your product, cart and checkout pages.
Method 2: a few lines in a child theme
On self-hosted WordPress you can hook into wp_head. WordPress describes wp_head as the action that fires in the head of the page. 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 in the parent theme, and your tracking would stop without any warning.
Do not load the tag twice. Loading it from a plugin and from the theme at the same time is a common source of confusion when you later read your numbers.
What is measured, and what is not?
The tracker sets no cookie. It keeps a random visitor id in local storage and a per-tab session id in session storage, and the raw IP address is never stored. Once the tag is in the head, the pages of your store are measured like any other page: shop, product, cart, checkout and the confirmation page. You can then read visits, sources, devices and pages in the dashboard.
For a store, three things are worth setting up in the first week:
- A goal on the order confirmation page. Open your own store, place a test order if your setup allows it, and note the URL of the page shown after payment. Create a path goal on that URL. The goals page explains path, event and click goals.
- A funnel from product to purchase. Chain the product page, the cart, the checkout and the confirmation. The funnels guide shows how, and our article on what to measure first in a small store says which steps matter most.
- Heatmaps and replay on the cart and checkout. See heatmaps and session replay.
Know the limit. Klickbee's cookieless audience measurement is designed with the CNIL exemption in mind, for audience measurement only. Acquisition data such as campaign parameters, session replay and ad conversions go beyond that exemption, and replay generally needs consent in France. Whether your store needs a banner depends on the store, its country and its setup, and you stay responsible for that decision. Our article on the CNIL exemption conditions goes through them.
How do you check that it works?
- Open your store in a private window and visit two or three pages.
- In your browser's network tab, look for a request to
tracking.klickbee.com. If you see it, the tag loads. - Open the live view in your dashboard. Your own visit should appear within moments. If it does not, check Allowed origins first: a missing
wwwform is the usual cause. - Visit the store on your phone and confirm the device split shows mobile.
- After every theme, plugin or caching change, repeat the check.
Caching and optimization plugins that delay, combine or defer scripts can stop a working tag. If the live view stays empty after your own visit, read the troubleshooting page.
If you run Google Ads or Meta campaigns for the store, our guide to conversion tracking on WordPress for Google Ads and Meta covers the next step.
Next step
The free plan covers one site and 1,000 sessions a month, with analytics, heatmaps, funnels and replay with a 7-day history. Create a free Klickbee account, paste the tag, and your store is measured within minutes.
This is general information, not legal advice.
FAQ
Is there a Klickbee plugin for WooCommerce?
No. There is nothing to find in a plugin directory. You install it with a script tag in the page head, or with the npm package for JavaScript frameworks.
Can I install it on a free WordPress.com store?
No. WordPress.com documents code in the header and plugin installation for its paid plans only, so a free site cannot load your own tracking script. Upgrade, or move to self-hosted WordPress.
Will it slow down my store?
The tag is a single script loaded with defer, so it does not block the page from rendering. Test your own store before and after, since theme and hosting differences matter more than one small tag.
Do I still need a cookie banner on WooCommerce?
It depends on the store, the country and the setup. The tracker sets no cookie, but you may run other tools that do, and some Klickbee features go beyond the audience measurement exemption. The site owner stays responsible for that decision.