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
- Deploy the downloaded CloudFormation template as a new stack in your AWS account. It creates a private S3 bucket, an origin access control and a dedicated CloudFront distribution. Read the Bucket and AssetURL outputs.
- Upload oraami-tracker.js to that bucket at the root, with content type application/javascript and cache control public, no-cache. Point the tracker script at AssetURL. For a branded hostname, configure a validated alternate domain and matching certificate on the distribution.
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.