# Click event not firing

**URL:** <https://community.piwik.pro/t/click-event-not-firing/3371>\
**Category:** Data collection and tags\
**Created:** [December 13, 2023, 11:23am UTC](https://community.piwik.pro/t/click-event-not-firing/3371 "2023-12-13T11:23:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobi0064](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@tobi0064](https://community.piwik.pro/u/tobi0064)\
**Post date:** [December 13, 2023, 11:23am UTC](https://community.piwik.pro/t/click-event-not-firing/3371/1 "2023-12-13T11:23:54Z")

</div>

Hi,

i have an issue i have made a custom event as per piwikpro guide, and i made a click trigger that triggers on click class.

The problem is that in the debugger it adds in the trigger

**Event**  
equals  
“stg.capturingClick”

and if i go to the event log the stg.capturingClick happens when i click the link but the datalayer is empty so the tag doesnt fire.

in the stg.click event though the clickclass i assigned is in the datalayer, but it just doesnt use that event in the trigger.

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [December 13, 2023, 1:05pm UTC](https://community.piwik.pro/t/click-event-not-firing/3371/2 "2023-12-13T13:05:47Z")

</div>

Hi @tobi0064,

In order to use the stg.click event, you need to disable this option in the click trigger -

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/e/ed85eb280a5d7f6473356feddc3e0e261529c70b.png)  
When this is enabled it will use the stg.capturingClick

---

<div class="post-metadata">

**Author:** ![tobi0064](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@tobi0064](https://community.piwik.pro/u/tobi0064)\
**Post date:** [December 13, 2023, 1:33pm UTC](https://community.piwik.pro/t/click-event-not-firing/3371/3 "2023-12-13T13:33:40Z")

</div>

Hi @kamilb

it has never been on

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

But it actually worked when turning it on, so thanks for your help! 🙂

---

<div class="post-metadata">

**Author:** ![kamilb](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/kamilb/32/309_2.png) [@kamilb](https://community.piwik.pro/u/kamilb)\
**Post date:** [December 13, 2023, 1:47pm UTC](https://community.piwik.pro/t/click-event-not-firing/3371/4 "2023-12-13T13:47:52Z")

</div>

Hi @tobi0064,

Sorry for the confusion.  
It seems that its the opposite so basically when its turned on it will use the stg.click.
