Install Analytise on WordPress
Three paths: a header-injection plugin, a theme edit, or a tiny functions.php hook.
Option 1 — Header plugin (recommended)
- Install a plugin like
WPCodeorInsert Headers and Footers. - Open the plugin's settings and find the
Header / <head>field. - Paste the snippet and save.
<script
defer
data-domain="yourwebsite.com"
data-site-id="YOUR_SITE_ID"
src="https://www.analytise.com/js/tracker.js"
></script>Option 2 — Edit your theme's header.php
- Go to
Appearance → Theme File Editor. - Open
header.phpand paste the snippet just before</head>. - Save changes.
Theme updates wipe header.php edits
If you don't use a child theme, prefer Option 1 or Option 3.
Option 3 — Hook into wp_head
Add this to your child theme's functions.php:
add_action('wp_head', function () {
echo '<script defer data-domain="yourwebsite.com" data-site-id="YOUR_SITE_ID" src="https://www.analytise.com/js/tracker.js"></script>';
});Verify it works
- Open your website in a new tab.
- The dashboard shows your visit under
onlinewithin a few seconds (live visitors update every ~15s). - Nothing showing? See Troubleshooting.
Next guide
WooCommerce