I'm currently configuring Zaraz CMP but
I'm currently configuring Zaraz CMP but encountering a snag. I've successfully integrated the GA4 tool with a pageview trigger, and it's functioning as anticipated, accurately reflecting activity.
However, issues arise upon enabling CMP and establishing a purpose. I'm unable to manually link this purpose to GA4, as the system suggests it'll automate this process. Despite publishing these modifications and accessing the site, I find that the
zaraz.consent
object remains undefined, while GA4 continues to track pageviews.
In an attempt to resolve this, I introduced a custom HTML tool, assigning it to the purpose I'd set up earlier. This action defines the zaraz.consent
object and triggers the consent banner's appearance. Nonetheless, GA4 still records data, disregarding user consent.
Setting the google_consent_default
values does stop GA4 from tracking pageviews but doesn't help with regards to defining the consent
object.
Does GA4 not require consent or is there something else I need to do to resolve this? Any help would be greatly appreciated.6 Replies
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
@yo'av Sorry for the confusion. CMP is enabled. But
zaraz.consent
is not defined when only the GA4 tool is enabled. If I add a custom tool and add that to the purpose it works as expected.
There is no option for me to assign GA4 to a purpose. The UI states it will do this automatically.@yo'av here is an example of what I mean with GA4 not allowing me to assign it a purpose.
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
tried both, pinged the domain via DM
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View