Learn business growth with Google Analytics 4 Forums Google Analytics 4 Google Tag Manager: Unable to track firing trigger's source or name

  • Google Tag Manager: Unable to track firing trigger's source or name

    Posted by John on 1 March 2023 at 4:52 pm

    Hey! I’ve got a bit of a puzzle I’m trying to solve. I have this tag that has multiple firing triggers. Only one trigger at a time fires without any hiccups, which is great. But here’s the catch, I need to push the trigger’s source or name along with the Google Analytics: GA4 Event tracking. Is that even possible using a Data layer variable or JavaScript Variable?

    Seriously, any advice or code suggestions to sort this out would be super helpful. I’m hoping to set this up like a variable or data that can be pushed as a parameter or data layer. Maybe it’s going to come in handy for other similar situations in the future too. Thanks a lot!

    Charlotte replied 10 months, 1 week ago 2 Members · 1 Reply
  • 1 Reply
  • Charlotte

    Member
    22 May 2023 at 7:03 pm

    Yes, this is possible using Google Tag Manager (GTM). You can pass the trigger’s name as a data layer variable and use it within Google Analytics (GA4) Event tracking. First, you need to create a new variable in GTM that references the trigger’s name using the ‘Trigger Name’ variable type. Then you would need to add a new parameter to your GA4 Event tag – you could call it something like ‘trigger_source’ and set the value to the variable you’ve just created. Now, every time the tag fires and sends an event to GA, it would also send the name of the trigger that caused it to fire. Please note that you need to ensure the naming of your triggers is clear and concise to track it easily in GA reports.

Log in to reply.