Back to Installation Guides

Add heatmapp to your WordPress site

Follow these steps to integrate heatmapp 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 heatmapp. Replace `your_domain.com` with your website's root domain. 5. Click Update File

Verify installation

After implementing:


  • Visit your live website
  • Check your heatmapp 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.