# Heatmap and video tracking with GTM

**URL:** <https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701>\
**Category:** Data collection and tags\
**Created:** [August 8, 2023, 11:42am UTC](https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701 "2023-08-08T11:42:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![overlap](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/overlap/32/2213_2.png) [@overlap](https://community.piwik.pro/u/overlap)\
**Post date:** [August 8, 2023, 11:42am UTC](https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701/1 "2023-08-08T11:42:00Z")

</div>

Hi,

we currently use Google Tag Manager, which controls/triggers Piwik Pro Analytics.

We would now like to use the heatmap and video tracking feature in Piwik Pro as well. Is there a way to trigger these tags via GTM?

If not, can Piwik Tag Manager be triggered/used via GTM?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)\
**Post date:** [August 9, 2023, 9:35am UTC](https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701/2 "2023-08-09T09:35:57Z")

</div>

Hi @overlap,  
Welcome to our community!

I would recommend implementing Piwik PRO using this solution: [Google Tag Manager: install a container (with a tracking code) | Piwik PRO help center](https://help.piwik.pro/support/getting-started/google-tag-manager-install-a-container-with-a-tracking-code/). This will allow you to use our Tag Manager and use our premade tags for [Heatmaps](https://help.piwik.pro/support/tag-manager/heatmap-clickmap-tag/) and Video tracking tags ([HTML5](https://help.piwik.pro/support/tag-manager/html5-video-tracking-tag/) or [Youtube](https://help.piwik.pro/support/tag-manager/youtube-video-tracking-tag/))

* * *

It’s also possible to send events to Piwik PRO that will go to Video and Heatmap reports. To do so, you have to send custom events with particular namings for category, action, name:

Heatmap:

- Category: _Heatmap events_
- Action: _Click_
- Name: [CSS Selector] (example: _#menu\>ul.contact\>li:nth-child(2)_)

Video events:

- Category: _Video -_ [name of the provider] (examples: _Video - HTML5_, _Video - YouTube_)
- Action: [Video event, list below]  
– _Play_  
– _Pause_  
– _Resume_  
– _Watched_  
– _Progress -_ [procentage of watched video] (example: _Progress - 75%_)
- Name: [name of the video] (example: _How to create a user flow report in Piwik PRO_)

Best,  
Oliwer

---

<div class="post-metadata">

**Author:** ![overlap](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/overlap/32/2213_2.png) [@overlap](https://community.piwik.pro/u/overlap)\
**Post date:** [August 28, 2023, 11:51am UTC](https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701/3 "2023-08-28T11:51:39Z")

</div>

Hi Oliwer,

Thanks! I added the PIWIK tracking code in GTM & also added the tags in Piwik Tag Manager. If I use the debugger, both tags (Youtube, Heatmap) are shown as fired.

However, the YouTube Report is still empty & Piwik Site Inspector says, that it can be used on the website.

The tags in Piwik Tag Manager are set to “No consent required”. The tags are flagged as “Non tracking tag” - maybe this is the issue? How can I solve this?

Thanks,  
Martin

---

<div class="post-metadata">

**Author:** ![Oliwer\_Kaczmarek](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/oliwer_kaczmarek/32/3888_2.png) [@Oliwer\_Kaczmarek](https://community.piwik.pro/u/Oliwer_Kaczmarek)\
**Post date:** [September 6, 2023, 7:29am UTC](https://community.piwik.pro/t/heatmap-and-video-tracking-with-gtm/2701/4 "2023-09-06T07:29:08Z")

</div>

Hi Martin,

Could you share with me via PM what is your instance?

Best,  
Oliwer
