
6/2/2023 · Tom Klein, Lucas Kostka
What this post added
Introduced Cloudflare Zaraz Worker Variables, a feature that allows custom JavaScript code to be executed server-side within Cloudflare Workers. This enables dynamic data collection, transformation, and enrichment for third-party analytics tools. The implementation leverages Dynamic Dispatch to call user-associated Workers from the Zaraz Worker, passing context and returning a Response object. Examples demonstrate translating GTM custom JavaScript variables and enriching user data via external APIs.