Serve the Oraami tracker with Cloudflare Workers

Serve the public browser script from your own asset hostname. Oraami continues to receive consent configuration requests and event uploads directly.

Updated Oraami Inc

Get the configuration

This handler reads the current public Oraami tracker from the hosted collector.

Set up the asset route

  1. Create or select a Worker on a dedicated asset hostname. Save the downloaded module as its entry point. If you already have a router, call this handler only on /oraami-tracker.js.
  2. Deploy the Worker and attach your registered asset hostname or the exact script route. The handler requests the public Oraami script with GET or HEAD and sends only an Accept header.

Use the asset on your website

In the existing Oraami installation snippet, change only the script src to the new HTTPS asset URL. Preserve data-collector, the public site key, consent and other selected attributes. Allow your asset origin in script-src and the original collector in connect-src.

node tracker-asset.mjs verify https://YOUR_ASSET_HOST/oraami-tracker.js

Confirm the visit and keep the file current

On the registered website, check that the browser loads the script and retrieves its site configuration. Grant analytics consent, browse and check the saved batch in Capture health. If a byte comparison fails for a static origin, refresh the source file and revalidate the cached copy.

Related guides