Hi, I recently started using Zaraz and I've found that the styles injected for Zaraz' consent modal

Hi, I recently started using Zaraz and I've found that the styles injected for Zaraz' consent modal are blocked by our content security policy Our CSP blocks the use of inline styles, but allows for a nonce. The styles don't seem to use or have access to the pre-existing nonce. Currently, we have to use the hash of the styles to allow it for the CSP, but this feels more like a temporary solution, is there a way to inject the sites nonce into the style element for Zaraz' consent modal, or to load them another way?
18 Replies
xgarb
xgarb3mo ago
Hi, Trying to work out how to get GA to show customised events based on the event names and parameters. I have this code: zaraz.track('activity_contact_button', { event_name: 'Club Enquiry', event_category: 'Club Enquiry', value: 1 }); Previous to switching on 'all other events' I would see Club Enquiry in GA Events. Now I see activity_contact_button as well. This is OK. However I want to now filter some events into customised events. For the Club Enquiry event I can see this in the browser console...
xgarb
xgarb3mo ago
No description
xgarb
xgarb3mo ago
I've tried all sorts of combinations similar to this...
xgarb
xgarb3mo ago
No description
xgarb
xgarb3mo ago
to test before adding some more filters and I don't see the custom event in GA.
Eric
Eric3mo ago
If it's not too late, I would love to help. My employer is an enterprise client, and we are heavy Zaraz users. Whenever I see a new Zaraz feature, it’s as if you are reading my mind. 😉
Chris_x_ai
Chris_x_ai3mo ago
What if the GA4 Auto Detection is not working? it is firing GA4 events without giving consent on this
No description
No description
Chris_x_ai
Chris_x_ai3mo ago
No description
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Coop
Coop3mo ago
Google ads for Zaraz is not showing any page views for conversion goals connected but it seems to work fine for GA with the same triggers
No description
No description
No description
Coop
Coop3mo ago
I had google tag manager on before so not sure if there is some buried setting to set it to Zaraz. - Should enhanced conversions in google ads be on or off? - This has been on for many days so its not the wait 3 hours issue - Conversion linker is on (not sure if that is correct)
Coop
Coop3mo ago
No description
Coop
Coop3mo ago
No network calls for google ads but the action is firing
Will
Will3mo ago
Hi, noob here. I've been working with the Zaraz documentation and worked my way through all our events, but I'm having an issue with script timing (I think). It appears that the zaraz.set calls in the <body> are completed after my trigger event, which is a URL contains; the variables are empty when zaraz.set is executed. I've been able to get all our events to work, but the triggers needs to have a wait timer of 5000ms + or longer, depending on internet speed. I've experimented with "Element Visibility" trigger matches with no success. Any suggestions on how to resolve trigger firing time? The site itself is running HighLevel CRM, which is grey-clouded, the dev URL is https://williamjshaw.ca/challenge_magic_fb1_lto.
Eric
Eric3mo ago
I had that problem before and fixed it using the localStorage and sessionStorage JavaScript API. if( !localStorage.getItem("_zaraz_consentMarketing") ){ localStorage.setItem("_zaraz_consentMarketing"); } You just need to prefix your property with _zaraz_, and Zaraz will pick it up as usual. I didn't find how to bypass a page scope tho.
Unknown User
Unknown User3mo ago
Message Not Public
Sign In & Join Server To View
Mackenly
Mackenly3mo ago
If a context enrichment worker is being used and the account is on a Worker's free plan and the 100k daily request limit gets hit, what happens? Will the enrichment worker be bypassed or will it error and prevent Zaraz from working?
ItsTobias
ItsTobias3mo ago
I would check your conversion id and conversion label are correct. Ads communication is fired client side so you should see the requests in your network tab in Dev tools, check they aren't being blocked by an ad blocker/tracking blocker.
Want results from more Discord servers?
Add your server