Get the configuration
Use the Node.js 22+ asset tool to download the current tracker before configuring your static origin. Run it again when updating your hosted copy.
node tracker-asset.mjs fetch ./oraami-tracker.jsSet up the asset route
- Host oraami-tracker.js on an HTTPS static origin that you control. Use an existing Standard or Premium Front Door profile and endpoint in its resource group.
- Run the Bicep deployment below with your own values. To use a validated custom domain, supply its resource ID as customDomainId. The template adds an origin group and an exact HTTPS route. Use the default endpoint hostname or the associated custom domain.
az deployment group create --resource-group YOUR_GROUP --template-file tracker.bicep --parameters profileName=YOUR_PROFILE endpointName=YOUR_ENDPOINT assetHostname=YOUR_STATIC_ORIGIN_HOSTUse 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.jsConfirm 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.