-
Repetitive firing of GTM events: What could be the cause?
I noticed an issue when working with my NextJS app that uses GTM to pass an event to GA4. When I initialize GTM via the react-gtm-module package and create a custom event ‘view_faq’, it seems to trigger more times than intended when I perform a button click that pushes to the data layer. The event fires about ten additional times in succession, and I see it multiple times in Tag Assistant and GA4 debug view.
Even more peculiar, when looking at each fired event and corresponding API call, only the data layer pass seems to change with a parameter called ‘engagement_time_msec’. The initial API call goes as planned, but the subsequent ten calls only modify the ‘engagement_time_msec’ field. As I’m a bit stumped by this, do you know what might be causing this issue?
Log in to reply.