Follow these steps to integrate heatm.app analytics into your WordPress site.
Add the tracking script to your WordPress site using the theme editor:
1. Go to Appearance > Theme Editor
2. Select your active theme
3. Click on header.php
4. Add the script before the closing `</head>` tag:
<!-- Add this before </head> in your theme's header.php -->
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="your_domain.com"
src="https://heatm.app/js/script.v2.min.js"
></script>Replace `YOUR_WEBSITE_ID` with your actual Website ID from heatm.app. Replace `your_domain.com` with your website's root domain. 5. Click Update File
After implementing:
For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.