Replies: 1 comment
-
Any chance you can use capture events for the click? we stop many of those events once we've handled them so we don't handle them again. https://www.simoahava.com/analytics/simple-custom-event-listeners-gtm/ Otherwise, you could wrap usages and fire a custom event for onPress/onPressStart/onPressEnd/onAction/etc, this might be useful because then you can actually track real interactions, not just click events, which sometimes the browser fires additional times for compatibility in certain scenarios. Examples of where this might be useful |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The
onPress
method triggers an event for which the type ispress
. But it isn't catched by my Google Tag Manager who is catching clicks only.How would you handle that?
Is there a way for GTM to catch
press
events? Or should I override theonPress
event type to useclick
instead? Should I override theonPress
method to dispatch aclick
event as well as thepress
event?Thanks in advance for your help
Beta Was this translation helpful? Give feedback.
All reactions