Back to Installation Guides

Add heatm.app to your WordPress site

Follow these steps to integrate heatm.app analytics into your WordPress site.

Add tracking script using theme editor

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:

Code
<!-- 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

Verify installation

After implementing:


  • Visit your live website
  • Check your heatm.app dashboard for incoming data
  • It might take a few minutes for the first pageviews to appear

For advanced configuration options like localhost tracking, custom API endpoints, or cross-domain setup, see the script configuration reference.