I still get `zaraz.consent` undefined,

I still get zaraz.consent undefined, how did you get it to work?
25 Replies
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo9mo ago
@Lovly It does not work for me when only using GA4 I get the same response as your screenshot with the consent object not being defined
Lovly
LovlyOP9mo ago
gameboost.com
skezo
skezo9mo ago
@Lovly are you using GA4 as well or just Clarity and google Ads?
skezo
skezo9mo ago
have you enabled consent and assigned the tools to a purpose?
No description
Lovly
LovlyOP9mo ago
disabled for now, but had them enabled with purpose ga4 too yes
skezo
skezo9mo ago
are you able to assign a purpose to GA4 or it is set to autodetect as well?
Lovly
LovlyOP9mo ago
autodetected yeah
Lovly
LovlyOP9mo ago
No description
Lovly
LovlyOP9mo ago
google ads too
skezo
skezo9mo ago
does the modal show up if you do not skip consent for clarity or mixpanel?
Lovly
LovlyOP9mo ago
let me try nope oh nvm it just worked
skezo
skezo9mo ago
the modal will show up for me as well but GA4 still calls home without waiting for user consent. If I set google_consent_default to the below GA4 will stop recording visits.
//​​Set the default consent status
zaraz.set("google_consent_default", {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
//​​Set the default consent status
zaraz.set("google_consent_default", {
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied'
});
Lovly
LovlyOP9mo ago
awesome, thanks for the assistance and the tip I appreciate it!
skezo
skezo9mo ago
i dont think that will fix it though as you will need to then set google_consent_update based on user feedback from the modal
Lovly
LovlyOP9mo ago
I plan on customizing it fully just needed the zaraz.consent to work
skezo
skezo9mo ago
it seems odd I have to create an empty tool to get the consent object to work @yo'av is there any way arounnd this?
skezo
skezo9mo ago
If you are using the IAB modal you can see GA4 is not listed as partner just the temp one i assigned
No description
skezo
skezo9mo ago
I also have enabled Access client key-value store in GA4 which should mean consent is required.
No description
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo9mo ago
Thanks! I have tried both, same result.
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo9mo ago
awesome, thanks! @yo'av Is there an ETA on this fix?
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo9mo ago
awesome, thanks! @yo'av just wanted to confirm this is now working as expected for me! Thanks for the quick response and fix.
Want results from more Discord servers?
Add your server