Cloudflare Zaraz

Cloudflare Zaraz

Cloudflare Zaraz is a third-party script manager that runs marketing and analytics tags server-side through Cloudflare's edge network. Scripts are proxied rather than loaded directly from third-party domains, reducing client-side tracking exposure and improving page load performance.

Overview

Cloudflare Zaraz is a server-side tag management platform that fundamentally changes how third-party marketing and analytics scripts execute on websites. Instead of loading third-party JavaScript directly in the visitor's browser, Zaraz intercepts tag requests at Cloudflare's edge and executes them server-side, proxying only the necessary data to the third-party vendor. This architecture reduces the number of client-side scripts, improves page load performance, and limits direct third-party access to visitor browsers.

What This Script Does

Zaraz replaces traditional client-side tag managers (like Google Tag Manager) with an edge-computed approach.

  • Script loaded: A single lightweight Zaraz loader script from the site's own domain (proxied through Cloudflare) replaces multiple third-party scripts. This loader captures page events and sends them to Cloudflare's edge.
  • Edge processing: When a page event occurs (page view, click, form submission), the Zaraz loader sends the event data to Cloudflare's edge network. At the edge, Zaraz evaluates trigger rules and executes the configured third-party tags server-side — sending the appropriate data to Google Analytics, Meta Pixel, HubSpot, or any other configured vendor.
  • Cookie management: Zaraz can manage first-party cookies on behalf of configured vendors (e.g., creating a _ga-equivalent cookie for Google Analytics). Cookie behavior is controlled through Zaraz's configuration rather than by third-party scripts running in the browser.
  • Consent integration: Zaraz includes built-in consent management that controls which tags fire based on the visitor's consent state. Tags can be assigned to consent categories, and Zaraz blocks their execution until the appropriate consent is granted.
  • Data collected: Page URL, referrer, browser user agent, page events, and any custom data layer variables configured by the site operator. This data is processed at Cloudflare's edge and selectively forwarded to configured vendors.
  • Reduced third-party exposure: Because vendor scripts do not load directly in the browser, third-party vendors cannot access the visitor's cookies, DOM, or other browser APIs beyond what Zaraz explicitly provides.

Consent & Compliance

Cloudflare Zaraz falls under the functional consent category as tag management infrastructure.

Under GDPR and ePrivacy, Zaraz itself is a tag management tool — its compliance profile depends on which third-party tags it executes. The Zaraz loader script and edge processing are functional infrastructure. However, the tags it manages (analytics, marketing) retain their original consent requirements. Zaraz's architectural advantage is that it prevents third-party scripts from directly accessing the browser, reducing the cookie and tracking surface. The built-in consent management ensures tags only fire when appropriate consent is granted.

Under CCPA/CPRA, Zaraz's role as an intermediary means the data it forwards to third-party vendors inherits those vendors' CCPA obligations. The site operator must configure Zaraz to respect opt-out signals (Do Not Sell/Share) for marketing tags.

Should You Block This Without Consent?

No. Zaraz itself is functional infrastructure — a tag management layer that controls how other scripts execute. Blocking Zaraz would prevent all managed tags from functioning, including those with consent. The correct approach is to use Zaraz's built-in consent management to control individual tags based on visitor consent preferences, allowing the Zaraz loader to run unconditionally while gating each downstream vendor tag on the appropriate consent category.

Visit website

Consent Categories

Functional

Also Known As

cloudflare zarazzaraz tag managerserver side tag managementzaraz privacycloudflare script managerzaraz consent

Industries

Computer SecurityComputers Electronics and Technology

Tracked Domains (1)

zaraz.cloudflare.comFunctional

Frequently Asked Questions

Does Cloudflare Zaraz require consent?

Conditional. Zaraz itself is functional tag management infrastructure and does not require consent. However, the third-party tags it manages — analytics, marketing pixels — retain their own consent requirements. Use Zaraz's built-in consent management to gate each downstream tag.

What does Cloudflare Zaraz load and collect?

Zaraz loads a single lightweight script from the site's own domain via Cloudflare. It intercepts tag requests at the edge, executing them server-side. Page URL, referrer, user agent, and custom data layer variables are forwarded to configured vendor tags.

How does ConsentStack work with Cloudflare Zaraz?

ConsentStack classifies Zaraz as functional infrastructure. The Zaraz loader runs unconditionally while ConsentStack gates individual downstream vendor tags on their appropriate consent category, preventing analytics or marketing tags from firing without consent.

Other Cloudflare Products

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Cloudflare Zaraz

ConsentStack automatically detects and manages Cloudflare Zaraz trackers so your site stays compliant with global privacy regulations.