Archived topic
installing google analytics 4
1 reply · Started by Kevin on November 2, 2020
Hi, I want to install google analytics 4. I'd like to avoid using yet another plugin if possible. Is there a place to paste the script inside GeneratePress? If so can you direct me, please?
Thanks
Kevin
Hi there,
this article explains how to add Google Tag Manager to your site:
https://docs.generatepress.com/article/implement-google-tag-manager/
If you're not using GTM, then the only differnce is that google provides you just ONE snippet that goes in the wp_head hook. example here:
https://developers.google.com/analytics/devguides/collection/ga4