DEV Community

Discussion on: dataLayers & Google Tag Manager & GA4 for Developers

Collapse
 
stephanreynolds profile image
Stephan Reynolds ✪

Great tutorial. How can I pass the values & events into Google Analytics as events or goals?

Collapse
 
ekuplu profile image
Erman Küplü

Thanks, Stephan! That's definitely a good question and I should make another tutorial for that. I'll write here quickly though.

For Universal Analytics, you just need to create a new "Google Analytics UA Event" tag in GTM and then you can use variables in ACTION or LABEL fields.

GA4 is more complex. Please check the following videos, they'll give you a great understanding of this topic - youtube.com/watch?v=H352OxQEous

Even though they are made for Shopify Google Tag Manager - Analytics integrations; you will still get how GTM works, processes the data and passes it into GA4.