Why Cloudflare Bought Zaraz
31 points by dknecht 3 years ago | 13 comments- hankchinaski 3 years agoisn't this a glorified version of segment?
1. User loads a website with the Zaraz script.
2. The script notifies the Zaraz backend about the different properties of the visit: page, browser, device, relevant cookies and more.
3. The Zaraz backend evaluates the information, and looks for the Facebook Pixel cookie.
4. If the Facebook Pixel cookie is included, the Zaraz backend contacts Facebook through the Server-Side API, and registers the page view event with the cookie value. In this scenario, the browser does not load any Facebook script or connect to any Facebook server at all.
5. If the Facebook Pixel cookie does not exist, Zaraz bundles the original Facebook Pixel in the response it sends to the browser. It will include all other third-party scripts Zaraz needs to load on the client side – each with their unique settings.
6. To prevent the Facebook Pixel from slowing down the page, Zaraz waits until the website reaches interactivity before executing it. Once the Facebook Pixel is loaded for the first time, a cookie will be created, which Zaraz picks up and uses to avoid loading the script again in all future events.
7. If the user leaves the website before the Facebook Pixel was loaded, Zaraz uses its Load On Exit technique to still send the page view event to Facebook. It does so by constructing all the request parameters on the backend and attaching a simple fetch call to the page unload event. No data is lost and all page views are recorded.
- yoavm 3 years agoI am co-founder of Zaraz. The description is there is actually old. Zaraz doesn't load the Facebook Pixel in the website at all. It loads it completely server side.
It's very different from Segment, mostly because it essentially requires not client side JS at all. We're using the fact we can tap on the request on the CDN level, and then just use that information to forward the data to third parties. I explained the process in detail here: https://blog.cloudflare.com/zaraz-use-workers-to-make-third-...
- jacobr 3 years agoThis looks amazing, can’t wait to play around with it. What’s the story around migrating from GTM? We could easily switch out `dataLayer.push` for `zaraz.track` in our internal GTM wrapper, but is there feature parity?
- AryanBeezadhur 3 years agoOn their [pricing page](https://zaraz.com/pricing/), the Free tier which is coming soon will have easy migration from Google Tag Manager.
- yoavm 3 years agoThere definitely is feature parity though not everything is available yet through the new Cloudflare interface. Write us to zaraz@cloudflare.com if you need help with converting a large GTM container
- AryanBeezadhur 3 years ago
- jacobr 3 years ago
- ksec 3 years ago>isn't this a glorified version of segment?
Why is it "glorified"? Isn't it exactly the same as segment?
I wonder if this will be free for Cloudflare user. We can now essentially abstract most JS script into a single file shared by hundreds of millions of site though Cloudflare.
- AryanBeezadhur 3 years agoYes. According to [this article](https://news.ycombinator.com/item?id=29496298):
> Post-acquisition, Zaraz will be folded into Cloudflare and offered as a standalone product called Cloudflare Zaraz — a free version will also be made available, initially in beta. "This means Cloudflare customers will be able to simply toggle on the solution on their dashboard, and it will immediately work on their website, no coding involved," Zaraz cofounder and CEO Yair Dovrat told VentureBeat.
- ksec 3 years agoWow this is going to be big. Thanks for the link. ( Many of these are not reaching Front-page at the moment ) It essentially encapsulate 95% if not 99% of all tracking javascript into one.
- ksec 3 years ago
- 3 years ago
- AryanBeezadhur 3 years ago
- yoavm 3 years ago
- skybrian 3 years agoI'm wondering if this makes things easier or harder for ad blockers? I guess they could remove the Zaraz script?
- AryanBeezadhur 3 years agoThey wouldn't remove the script, but they would need to add ||zrz.co^ to their list of URLs to block requests to.
This would actually make it easier to bypass adblockers, since instead of having to proxy multiple URLs through your domain, you only need to proxy Zaraz's URL.
- AryanBeezadhur 3 years ago
- DarthNebo 3 years agoWish they'd also answer why they felt benchmarking Fastly CDN & publishing skewed results was alright, but their own ToS expressly prohibits benchmarking Cloudflare services
- NicoJuicy 3 years agoYou should read the thread...
Fastly wanted to compare their paying tier with Cloudflare's free tier, which is also skewed.
The ToS was probably added for people stresstesting the service. The CEO mentioned they are way beyond that point now and will remove that.
If you were so interested, why didn't you follow up on the topic? All the information is literally there, was broadly discussed and has no meaning here ...
- mattl 3 years agoTheir CEO said something here a few days ago about how that was leaving their ToS.
- NicoJuicy 3 years ago
- lizray 3 years agoHi please help me get 22reffarals please am stark i need some money to boost me help me