Note: For versions below 16.8.0, use a custom code to collect data for heatmaps and clickmaps.
The heatmap & clickmap tag lets you collect data for heatmaps and clickmaps in the site inspector for Chrome. A heatmap shows color-coded data on where people clicked on a page. A clickmap shows the details of clicked elements on a page. In this article, we’ll show you how to set it up.
Here are some things to know before you add the heatmap & clickmap tag:
- Install the site inspector for Chrome using our extension if you haven’t done it yet.
- The site inspector for Chrome can also show scrollmaps, and they need to be set up separately.
- You can use only one heatmap & clickmap tag on a site or app.
To add and set up the heatmap & clickmap tag, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Tags.
- Click Add new tag.
- Name the tag and select the following type: Heatmaps & clickmaps.
- Click Next.
- In Advanced tag settings, choose Consent type. Set it up if you use Consent Manager. The tag will fire only when selected consent is given by a visitor.
- Respect visitor privacy is turned on by default. Leave it as is, if you want to respect visitors who set a Do-Not-Track option in their browser or opted out from tracking.
- In Flight dates, set the date and time when the tag is fired.
- In Tag triggers, click Add new trigger or Choose existing trigger to set up a trigger for this tag.
- For tracking all clicks on all pages, use a click trigger without conditions.
- For tracking selected clicks, use a click trigger with conditions.
Note: Only a click trigger can be used for a heatmap & clickmap tag.
- Click OK.
- Test your tag in debug mode.
- If everything works fine, click Publish.
- Done! Now data is collected. After about an hour, you’ll see it in the site inspector for Chrome.