My Mautic version is: 3.2.5
My PHP version is: 7.3
My Database type and version is: mariadb 10.2
My problem is:
I have the Mautic Tracking Code managed via Google Tag Manager, and it works, but per page visit the event is fired four times.
I can see it in the browser console and also in mautic, where each event is captured.
Can you clarify if this is on Mautic landing pages or your website?
Have you checked that you are not loading the script in a CMS plugin or similar, in addition to via GTM?
You can PM me the URL if that is easier!
I am quite sure the integration only happens via GTM, no CMS integration involved here.
We don’t use mautic for our landing pages yet, so this is the website.
By investigating in the website source code, I can’t find any other code snippets here, so it really should be the GTM only.
Yes it looks that way - can you share how you have it set up in GTM - both the custom HTML with the scripts but also the triggers?
all right, this was the correct question to ask - the GTM config allowed for several events to be fired per page hit, in contrast to what our consent management has documented.
So we fixed it now by limiting the event to ‘once per page’ in GTM.
Thank you for the support, the topic is solved.
Hurrah! Glad you got to the bottom of it - I want to get this better documented in our docs as it is quite a common way of implementing the script nowadays but we do not have any guidance - would you be up for helping to draft something?
@maddy I’d be interested in seeing this too!
I can not provide this information, because for my company someone else is managing the GTM, I don’t have any access here.