# Trigger on stg.linkClick only

**URL:** <https://community.piwik.pro/t/trigger-on-stg-linkclick-only/2621>\
**Category:** Data collection and tags\
**Created:** [July 20, 2023, 11:18am UTC](https://community.piwik.pro/t/trigger-on-stg-linkclick-only/2621 "2023-07-20T11:18:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.k.bgp](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@l.k.bgp](https://community.piwik.pro/u/l.k.bgp)\
**Post date:** [July 20, 2023, 11:18am UTC](https://community.piwik.pro/t/trigger-on-stg-linkclick-only/2621/1 "2023-07-20T11:18:39Z")

</div>

Hi all,

I’m trying to exclusively track link clicks with the Piwik TagManager.

The page is firing an event (gtm.linkClick) on link clicks that doesn’t fire on regular clicks.

How can I configure the click trigger to only trigger on gtm.linkClick and not stg.Click? My first instinct is a custom variable, but I’m not sure which variable would be used to relate to the event name.

Thx in advance!

---

<div class="post-metadata">

**Author:** ![sararekowska](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sararekowska/32/1582_2.png) [@sararekowska](https://community.piwik.pro/u/sararekowska)\
**Post date:** [July 20, 2023, 12:13pm UTC](https://community.piwik.pro/t/trigger-on-stg-linkclick-only/2621/2 "2023-07-20T12:13:44Z")

</div>

Hi there!

Every click on the page has a parameter called `Click URL` (you can see it in debug mode, when you click on `stg.Click` in events log and go to `Variables`). Regular clicks have this parameter set to `undefined`, so based on that you can adjust the trigger to fire only when Click URL it’s set.

Here’s a handy article if you want to learn more about click trigger and conditions you can set: [Click trigger | Piwik PRO help center](https://help.piwik.pro/support/tag-manager/click-trigger/) 😄

---

<div class="post-metadata">

**Author:** ![l.k.bgp](https://avatars.discourse-cdn.com/v4/letter/l/8edcca/32.png) [@l.k.bgp](https://community.piwik.pro/u/l.k.bgp)\
**Post date:** [July 20, 2023, 12:37pm UTC](https://community.piwik.pro/t/trigger-on-stg-linkclick-only/2621/3 "2023-07-20T12:37:41Z")

</div>

Thank you Sara… the answer is so obvious now that you’ve pointed it out.

I’ve solved the problem by adding the condition ‘Click URL contains .’ to my triggers.
