I still get `zaraz.consent` undefined,

I still get zaraz.consent undefined, how did you get it to work?
25 Replies
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo7mo 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
Lovly7mo ago
gameboost.com
skezo
skezo7mo ago
@Lovly are you using GA4 as well or just Clarity and google Ads?
skezo
skezo7mo ago
have you enabled consent and assigned the tools to a purpose?
No description
Lovly
Lovly7mo ago
disabled for now, but had them enabled with purpose ga4 too yes
skezo
skezo7mo ago
are you able to assign a purpose to GA4 or it is set to autodetect as well?
Lovly
Lovly7mo ago
autodetected yeah
Lovly
Lovly7mo ago
No description
Lovly
Lovly7mo ago
google ads too
skezo
skezo7mo ago
does the modal show up if you do not skip consent for clarity or mixpanel?
Lovly
Lovly7mo ago
let me try nope oh nvm it just worked
skezo
skezo7mo 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
Lovly7mo ago
awesome, thanks for the assistance and the tip I appreciate it!
skezo
skezo7mo 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
Lovly7mo ago
I plan on customizing it fully just needed the zaraz.consent to work
skezo
skezo7mo 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
skezo7mo 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
skezo7mo ago
I also have enabled Access client key-value store in GA4 which should mean consent is required.
No description
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo7mo ago
Thanks! I have tried both, same result.
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo7mo ago
awesome, thanks! @yo'av Is there an ETA on this fix?
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
skezo
skezo6mo 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