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 the tracker on your HTTPS static origin. Clone your Fastly delivery service version and configure a TLS backend named oraami_static. Set override Host, SNI and certificate hostname to your origin hostname.
- In custom VCL, insert the provided block inside vcl_recv after #FASTLY recv. Check the generated backend identifier using Show VCL. Validate the service version, activate it and compare the asset bytes. The block removes cookies and authorization on the tracker request.
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.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.