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
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•3mo ago
Message Not Public
Sign In & Join Server To View
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?
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•3mo ago
Message Not Public
Sign In & Join Server To View
Are you using zaraz debug mode?
It shows the actions fired in a little window in the browser
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
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.
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
The numbers without the AW- are the conversion ID but you also need the conversion label which is the second part in the tag
where do I put the label?
I just pass through the event name right now
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.
I don't think your conversion is configured correctly either, I don't think you want it firing with all tracks
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
You should be able to get page view data to go through with no conversion added at all
In Google ads it will tell you when it's receiving page view data and it will show the conversion Action as "active" if page view data is coming through even without a conversion configured