# Sending custom events to Piwik pro using GTM

**URL:** <https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111>\
**Category:** Data collection and tags\
**Created:** [May 1, 2023, 11:00am UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111 "2023-05-01T11:00:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgoasduff](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/cgoasduff/32/1755_2.png) [@cgoasduff](https://community.piwik.pro/u/cgoasduff)\
**Post date:** [May 1, 2023, 11:00am UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111/1 "2023-05-01T11:00:14Z")

</div>

Hello all, I am very new to Piwik Pro so forgive me 🙂

I am migrating a site from GA to Piwik pro. The site has a large amount of GA events created in Google Tag Manager. We will still be using GTM as all the triggers are already defined.

I am loading the Piwik Pro base script as a Custom HTML tag on all pages (screenshot 1)

I was trying to migrate a simple event by using the following Custom HTML tag (screenshot 2) - I published my GTM container and tested it. The tag fires from GTM - but when I use Piwik debugger, I can’t see my event being fired? Am I missing someting? Thanks !

Screenshot 1

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/8/8d97795afd9173dd9f0d361c6c47d5f870b129ea.png)

screenshot 2

![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/d/d8d2ea5fee3510b4e635149ce6507c6936852e55.png)

Screenshot 3

![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/5/5ff75b000c8207219279e92512a3a40f4e2c6fae.png)

---

<div class="post-metadata">

**Author:** ![Jakub\_Fidala](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/jakub_fidala/32/1675_2.png) [@Jakub\_Fidala](https://community.piwik.pro/u/Jakub_Fidala)\
**Post date:** [May 1, 2023, 4:15pm UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111/2 "2023-05-01T16:15:49Z")

</div>

It should be working if you are firing it same way - because you technically know that same trigger was used before. Go to overview and try to find that event, it will have darker color if it was fired. Or click specific trigger that should fire that event and check if there is your tag that you made.

… or third option go to Piwik to /settings/debugger/ and find your session. If your events are firing correctly they should show up there in logs.

---

<div class="post-metadata">

**Author:** ![cgoasduff](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/cgoasduff/32/1755_2.png) [@cgoasduff](https://community.piwik.pro/u/cgoasduff)\
**Post date:** [May 1, 2023, 6:50pm UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111/3 "2023-05-01T18:50:46Z")

</div>

> [@Jakub\_Fidala](#):
>
> /settings/debugger/

Thanks for your reply. I don’t seem to have a debugger in Piwik under settings ? am I at the wrong place?

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/7/70996d6c9b333fc195237d9fec1b545f68cc8c43.png)

---

<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:** [May 2, 2023, 6:32pm UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111/4 "2023-05-02T18:32:25Z")

</div>

Hi @cgoasduff,

CNIL compliance (turned on in administration) removes the tracker debugger from Analytics as this tool is against the CNIL guidelines.

As you are firing this tag via Google Tag Manager, you won’t find it in Overview in debug mode. Events log shows you events that are in dataLayer, and not the events that are send to Piwik PRO.

One way to see if the event went through is to check it in network in the console:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/d/dcc3cfe41cf4ddee2ab85622324bbb47321c49f0.png)  
If your tag was fired you will find in network “ppms.php” request with payload that contains:

- Event Category (e\_c): Social follow
- Event Action (e\_a): Facebook Click
- Event Name (e\_n): {{Page Path}}

---

<div class="post-metadata">

**Author:** ![cgoasduff](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/cgoasduff/32/1755_2.png) [@cgoasduff](https://community.piwik.pro/u/cgoasduff)\
**Post date:** [May 2, 2023, 8:18pm UTC](https://community.piwik.pro/t/sending-custom-events-to-piwik-pro-using-gtm/2111/5 "2023-05-02T20:18:17Z")

</div>

Amazing! thanks for your help
