Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Hey, folks. We're running into an

Hey, folks. We're running into an interesting issue: Zaraz's built in tags like Facebook expect to have to hash email addresses. But we only receive some of our events with emails pre-hashed. Is there a way, or could I add a feature request, to allow us to tell the tag that a value is pre-hashed? We get it in and are trying to pass it along pulling an event property, but I believe the hash is being hashed, looking at the code.
No description

iFrame Tracking with Google Tag Manager

Zenchef events and Zaraz configuration Hi, I am using Zenchef for a client's restaurant in order to make reservations. To track the events fired in the iframe Zenchef has an instruction: https://help.zenchef.com/hc/en-gb/articles/24832021528605-iFrame-Tracking-with-Google-Tag-Manager This works properly with Google Tag Manager and GA4 property. We see multiple events, each with their own data....

@yo'av sorry for the tag, but is the

@yo'av sorry for the tag, but is the zaraz team aware/working on this issue?

Hey there!

Hey there! We utilize the Zaraz API, but only for our 'purchase' conversion events, and this data gets sent to GA4 through Zaraz We are having an issue where the purchase events tracked through the Zaraz API do not have any device data. Where all other events contain data like "category": "mobile", "operating_system": "iOS", etc. - these Zaraz API events all show up as "desktop" and are missing device info: (see screenshot) In the Zaraz API event, we are making sure to pass through the device.user-agent, where we would expect all of this information to be derived from....
No description

Is there a way to completely block zaraz

Is there a way to completely block zaraz service on my websites? Hackers are loading third party js ad malwares through it, although my account is safe with 2FA and keep an activity log. Reported this issue countless times yet CF ignores this and doesn't admit that this service is flawed and full of issues......

This issue seems to have some cascading

This issue seems to have some cascading effects in my app, and also I was able to reproduce it in a basic new project. This seems important and therefore I'm tagging @jonnyparris here

Is there a way to see the full payload

Is there a way to see the full payload of information that comes with a given event submitted from my website to Zaraz? Not the Zaraz debug tool for the browser, but somewhere on Zaraz > Monitoring, or anything of that nature? There's like zaraz.track(), zaraz.context(), etc., and i'd like to just be able to know. Thanks.

I am using a cloudflare worker to hash

I am using a cloudflare worker to hash email and phone plaintext from a website, eventually assigning them in via GA4 third-party tool on Zaraz in a Custom action as Custom fields: user_data.sha256_email_address and user_data.sha256_phone_number. The worker returns an object with hashedEmail and hashedPhone. The object as a Zaraz variable is named: hashedData....

2 domains

I've got 2 domains in cloudflare, I want to setup a consent modal that will display on both domains, and if it is accepted / declined on either domain, the other domain will know about it (so the user doesn't have to make the decision twice). Is that possible? I'm not sure how to setup a test to verify it, as everything I do with Zaraz seems to happen directly in production....

I definitely think you are on the right

I definitely think you are on the right track. But haven't done your setup, only had non enhanced conversions w/ Zaraz. I would like to get to the setup you are targeting at some point. I switched recently to Google Tag Gateway in Cloudflare, and disabled the Zaraz third-party tool for GA4. Need to baseline that and ill probably circle back after that. Seems correct with sending the user_data payload, which minimally as you probably know must have the "email" key (and value), and also you can do: "phone_number", and address too (I forget the format). One area that you may have issue with is how the email (and phone and address if you send those), I believe need to be hashed. I assumed that Google only hashes these values, (but also found out later that you can hash it yourself on the client side with SHA-256 and it needs to be normalized based on their expectation too....

Hey All,

Hey All, Using Astro (static with no view transitions), hosted on Cloudflare Pages and using Zaraz to fire a GA4 tracker (Zaraz consent modal used, no custom JS on my site). The consent works fine on the page that it’s accepted (both accepting and rejecting) however the GA4 tracker doesn’t fire on any other page afterwards. I’m using a standard pageview trigger. Tried using GPT/Gemini for help but I wasn’t getting anywhere. ...

We have Zaraz integrated previously, and

We have Zaraz integrated previously, and it was working great. We have recently changed the domain and server and it started saying wainscoting:22397 Uncaught ReferenceError: zaraz is not defined at wainscoting:22397:5 (anonymous) @ wainscoting:22397 ...

but the thing is my canva sites has an

but the thing is my canva sites has an explicit CSP which blocks external scripts.. ive tried everything including server side loading, subdomain cloudflare worker, but the only thing that happened is that my analytics did show data, but it was the worker webpage 😭

Hey guys, has anyone run into an issue

Hey guys, has anyone run into an issue where a subdomain that’s only partially set up and with proxy fails to load the Zaraz script? Auto injection is on

@Omar I narrowed down the problem. It

@Omar I narrowed down the problem. It only happens with specific domains. We have a handful of domains that contain the same characters. When trying to access those domains, it defaults to the same one, regardless of which one was clicked on. I can view Zaraz setings for other domains that have entirely different spelling, which explains why you were not able to replicate the issue on your end....

Use Zaraz on domains not proxied by Clou...

Hello, Team. 🙂 I've noticed that my Cloudflare Zaraz scripts are returning a 522 error. Looking at the Security Analytics shows that this number is increasing. ...
No description

I am struggling a bit, as the Zaraz

I am struggling a bit, as the Zaraz documentation is not really helpful :/ I use the zaraz client to track an event like this: window.zaraz.track("c", { value: decision }); ...

Is it possible to delete or overwrite an

Is it possible to delete or overwrite an event payload property for ecommerce events via tool settings? If I configure a Default Field foo, the value it will overwrite an event payload property foo field in a standard tracked event but not (a custom field) in an ecommerce tracked event; the ecommerce event receives the original foo payload property. I can add a totally new field bar and it shows up in the payload of both standard and ecommerce event payloads.

Firing multiple times

I'm searching the forum for a similar issue I'm facing now, but can't find any. The issue I'm facing is that a Custom Html tool fires 3 times: 1 when the the Firing Trigger meet the conditions (That the normal behaviuor) and another tiem when other Custom Html tools fires and one more time with a visibilityChange fires. The code snippets that are injected by zaraz are: For the 1st time...

Got a weird issue with facebook action:

Got a weird issue with facebook action: Instead of the event coming through to Facebook events as "Lead" it comes through as the Zaraz event name "leadFormSubmit" that I use in the trigger. The variable in the action for FB event name is a string with the value for "Lead". I have tried just writing in "Lead" as well. Why why why? What do I do here?...
No description