WordPress integration TapCub analytics and chat for WordPress
One script in the site-wide header covers analytics and live chat on every WordPress page — classic or block theme, with or without WooCommerce. There is no TapCub plugin to install.
- Works with any theme
- No plugin required
- Cookieless by default
Two ways to add the script
Pick whichever matches how you manage the site. Both put the snippet on every page; you only need one.
-
1
Header-code plugin
Install a header and footer code plugin such as WPCode, paste the snippet into the site-wide header field, and save.
-
2
Child theme
Or add the tag through the
wp_headhook in your child theme’sfunctions.php, so it survives parent-theme updates. -
3
Clear the cache
If a caching plugin is active, clear the page cache once so the new tag is served.
-
4
Exclude from JS-delay
If a performance plugin delays JavaScript until interaction, add
client.jsto its exclusion list so quick visits still count.
index.html
<script defer src="https://static.pathclue.com/client.js" data-site="YOUR_SITE_KEY"></script>Copy the version with your real site key from Web analytics → Configuration → SDK code.
/wp-admin area never loads the front-end header, so it is not tracked.The same reports as everywhere else
WordPress is just where the script lives. The reports behind it are the full product.
Traffic, humans only
Sources, pages and realtime visitors, with bots and AI crawlers counted separately.
Live chat on the same tag
Turn chat on without a second script; the bubble appears on every page.
WooCommerce orders
The storefront uses the same script; order events can also be sent from the server for exact revenue.
No cookie banner for analytics
Counting is cookieless by default, so analytics alone usually needs no consent banner.
WordPress questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
Is there a TapCub plugin?
No plugin is required — the snippet in a header field is enough. Any header and footer code plugin works if you prefer a UI over editing the theme.
Where exactly does the snippet go?
In a site-wide header field, not a per-post box, so every page carries it. In a child theme that is the wp_head hook in functions.php. See the WordPress guide.
Does it track the WordPress admin?
No. /wp-admin does not load the front-end header, so admin pages are never counted. Logged-in editors on the front end are counted unless you exclude your own visits.
A page is not counted after I added the tag — why?
Usually a caching plugin serving old HTML, or a “delay JavaScript” optimisation. Clear the cache and exclude client.js from JS-delay. More in why TapCub shows no data.
Does WooCommerce need anything extra?
No — the storefront uses the same script. For exact revenue you can also send order events from the server API, which survives ad blockers.
The detailed steps, and other platforms
The full install guide for this platform, plus the other places the same script goes.