Tagged: GA4 tracking
In version 7.1, there is an option for users to disable GA4 tracking using the Consent manager . How does that work? Does it matter how GA4 is implemented? We typically inject GA tracking code in our child theme’s functions.php. Do we have to use the Enfold option for adding GA code?
Thank you.
Hey dburton77,
Thank you for the inquiry.
Yes, you have to put the tracking code in the Enfold > Google Services > Google Analytics > Google Measurement ID field. This is the only way the theme can detect if the tracking script is present on the site and allow the privacy cookies to control it.
Best regards,
Ismael