Follow these steps to integrate heatm.app analytics through Google Tag Manager. Important: You must use Custom HTML tag type and include the data-website-id attribute.
Add heatm.app tracking through Google Tag Manager:
1. Open your Google Tag Manager account
2. Go to Tags and click New
3. IMPORTANT: Choose Custom HTML as the tag type (do NOT use "Script URL" or other tag types)
4. Paste your complete heatm.app tracking script:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="your_domain.com"
src="https://heatm.app/js/script.v2.min.js"
></script>Critical: Replace `YOUR_WEBSITE_ID` with your actual Website ID from heatm.app. Replace `your_domain.com` with your website's root domain. 5. Set trigger to All Pages 6. Click Save 7. IMPORTANT: Click Submit and Publish your container (Preview mode is not enough - you must publish for tracking to work)
DO NOT use these methods - they will NOT work:
The script tag MUST include both `data-website-id` and `data-domain` attributes for tracking to work.
After publishing your GTM container, verify the installation:
1. Visit your live website (not GTM Preview mode)
2. Open browser Developer Tools (F12 or Right-click → Inspect)
3. Go to the Elements tab
4. Press Ctrl+F (or Cmd+F on Mac) and search for `script.v2.min.js`
5. Find the script tag and verify it has:
6. Go to the Console tab and check for errors:
7. Go to the Network tab, filter by `send-events`
8. Interact with your page (click, scroll)
9. Verify you see requests to `/.netlify/functions/send-events`
If you see no events in your dashboard:
Still having issues? Contact support@heatm.app with:
For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.