# Conversion/Event tracking problem

**URL:** <https://community.piwik.pro/t/conversion-event-tracking-problem/1789>\
**Category:** Data collection and tags\
**Created:** [March 13, 2023, 10:10am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789 "2023-03-13T10:10:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varamedia](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/varamedia/32/1430_2.png) [@Varamedia](https://community.piwik.pro/u/Varamedia)\
**Post date:** [March 13, 2023, 10:10am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/1 "2023-03-13T10:10:43Z")

</div>

Hello,

I was trying to measure telephone clicks and email clicks with the build-in tag manager system of piwik pro but it seems like i’m not able to create the right trigger.

I am using the click event combined with click url.

Kind regards,  
Jeroen

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 13, 2023, 8:36pm UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/2 "2023-03-13T20:36:33Z")

</div>

Hi. Can you show what data loads in the tag manager debugger after you click on the phone number or e-mail address? Maybe the code has to be slightly edited to generate a proper javascript click event. Here’s an example screenshot from the tag manager debugger:

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

---

<div class="post-metadata">

**Author:** ![Varamedia](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/varamedia/32/1430_2.png) [@Varamedia](https://community.piwik.pro/u/Varamedia)\
**Post date:** [March 22, 2023, 5:14am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/3 "2023-03-22T05:14:48Z")

</div>

Hi,

Some screenshots for clarification:

Current trigger I use for the email click tag:

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

* * *

stg.click event when clicking “[olivier@misterfranklin.be](mailto:olivier@misterfranklin.be)”

## ![](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/d/d86646120db50b9c4c084ceafd58e2e3f9ed8c8a.jpeg)

datalayer info when clicking on the email

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

---

<div class="post-metadata">

**Author:** ![Varamedia](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/varamedia/32/1430_2.png) [@Varamedia](https://community.piwik.pro/u/Varamedia)\
**Post date:** [March 22, 2023, 5:15am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/4 "2023-03-22T05:15:52Z")

</div>

_(I continue here below because I couldn’t add 5 links in 1 post from your system)_

* * *

can’t use the elementURL in trigger, i only see click url and page url

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

* * *

variable info when clicking on email:

You can see that the email is populated in the click url variable, that’s why i use it in the trigger.

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

Could you advise me please?

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 22, 2023, 10:06am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/5 "2023-03-22T10:06:02Z")

</div>

Hi. You showed screenshots for 2 different events. `stg.click` is the one that would be recognized with native Click trigger. What I can see is also a `gtm.linkClick` event. If you want to do your tracking based on that, you have to use datalayer trigger with event name set to `gtm.linkClick` and additional condition for the datalayer variable containing the actual value.

---

<div class="post-metadata">

**Author:** ![Varamedia](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/varamedia/32/1430_2.png) [@Varamedia](https://community.piwik.pro/u/Varamedia)\
**Post date:** [March 28, 2023, 8:06am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/6 "2023-03-28T08:06:47Z")

</div>

Hi,

I don’t get it anymore… Tried what you indicated here as 2nd option.

Via datalayer trigger on gtm.linkClick with datalayer variable:

As you can see I managed to get the mailto in a datalayer variable (dle - gtm…)

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

Tag looks like this:

 ![](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/e/e855d611c46ea2c83b67e50ec086373e576cf37e.jpeg)

Trigger looks like this:

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

Can you check these screenshots?

btw: that debugger is really not so user friendly… constantly jumps to other events when I’m looking in the logs.

Greetings,

Jeroen

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [March 28, 2023, 9:46am UTC](https://community.piwik.pro/t/conversion-event-tracking-problem/1789/7 "2023-03-28T09:46:08Z")

</div>

We could stick the the native click event, since it has all the needed info:

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

But either way, it looks like it’s working. The only issue is that it triggers twice currently.

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

When it comes to working with tracker debugger, I recommend filtering the results using your current visitor ID. Then you don’t have the mentioned issue.
