Hi, noob here. I've been working with the Zaraz documentation and worked my way through all our even

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.
16 Replies
Hiro
Hiro2w 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 User2w ago
Message Not Public
Sign In & Join Server To View
Mackenly
Mackenly2w 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
ItsTobias2w 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.
Unknown User
Unknown User2w ago
Message Not Public
Sign In & Join Server To View
ItsTobias
ItsTobias7d ago
Are you using zaraz debug mode? It shows the actions fired in a little window in the browser
Coop
Coop7d ago
They are firing and everything looks hooked up correctly. When I go to googles ad interface it says no tag is connected and no conversions are showing up as active
No description
ItsTobias
ItsTobias7d ago
You can't use the Google tools to detect the tag because CF do not use a JS tag. If the Google Ads conversion summary is saying there's no data and Cloudflare Zaraz debugger is saying it's sending data to Google Ads and you can see the network requests in dev tools network tab succeeding then you most likely have a mismatch between your conversion ID and label between your CF settings and the Google Ads conversion Action config.
Coop
Coop7d ago
Its just the numbers from the google account right? no AW- prefix? Also do I need to delete the old google tag connection? could that be it
No description
ItsTobias
ItsTobias7d ago
The numbers without the AW- are the conversion ID but you also need the conversion label which is the second part in the tag
Coop
Coop7d ago
where do I put the label?
No description
Coop
Coop7d ago
I just pass through the event name right now
ItsTobias
ItsTobias7d ago
Cloudflare Docs
FAQ | Cloudflare Zaraz docs
Below you will find answers to our most commonly asked questions. If you cannot find the answer you are looking for, refer to the community page ↗ or Discord channel ↗ to explore additional resources.
ItsTobias
ItsTobias7d ago
I don't think your conversion is configured correctly either, I don't think you want it firing with all tracks
Coop
Coop7d ago
Yeah, I'm just testing that to try to get anything to go through. Ideally I just want pageviews and have the tag fire. The gtag code doesnt have a second string and when I try to create a new conversion it doesnt give me a conversion id at all (just a GA4 event name), or the other options are scan the website for the tag
No description
Want results from more Discord servers?
Add your server