Install Wholetally on WordPress
Two ways to add the script to every page: a header-scripts plugin, or a few lines in a child theme.
Menu names as of November 2026; your theme or plan may name them differently.
Steps
- Create a site in the app and copy the snippet below. Your site ID replaces your-site-id.
- Option 1: use a header-scripts plugin and paste the snippet into the section for the <head> on every page.
- Option 2: add the function below to your child theme’s functions.php.
- Save, then load a page on your site.
<script defer src="https://api.wholetally.com/script.js" data-site="your-site-id"></script>
Option 2: child theme functions.php
Use a child theme so a theme update doesn’t remove it.
add_action('wp_head', function () {
echo '<script defer src="https://api.wholetally.com/script.js" data-site="your-site-id"></script>';
});
Serve the script from your own domain
If your site runs on Nginx or behind Cloudflare, serve the script from your own domain (first-party proxy) so fewer blockers catch it. How the first-party proxy works
See ChatGPT and other AI visitors
AI referrals work with the script alone: visitors from ChatGPT, Perplexity, Claude and other assistants get their own channel.
AI crawlers
Behind Cloudflare, add the edge collector Worker to count AI crawlers per page. Edge collector setup
Check it works
Open your site in a private window, then look for the visit on your site’s Overview. The Install page in the app also checks for the first hit.
Count the visitors you’ve been missing.
30-day free trial, no card needed. Create an account with your email and add your first site.