Install guides / WordPress
Add AnalyzeUser to WordPress
Replace YOUR_SITE_ID with the site id from your project's setup screen.
- Easiest: install a header-scripts plugin such as WPCode, open its Header & Footer page, and paste the tag into the Header box.
- Or, in a child theme, paste it just before </head> in header.php.
- Save. Clear any caching plugin's cache so pages pick up the tag.
<script defer src="https://analyzeuser.com/track.js" data-site-id="YOUR_SITE_ID"></script>To check it works, open your site in another browser (browsers you use the dashboard in are left out of your stats) and watch the dashboard's Online count. Next: custom events, revenue attribution, or proxying through your domain so ad blockers don't hide visitors.