Get the installation kit
Register the storefront origin in Oraami. Copy the public site key and collector origin from Settings → Installation. Remove any previous Oraami tag and allow the collector in the site’s script and connection policies.
Connect your storefront
- Extract the archive. In the Web container, open Admin → Import Container, select container.json and choose Merge into the current workspace. Review the two tags, triggers and constants.
- Set Oraami collector origin and Oraami public site key to the values from the registered site’s installation settings. Connect the banner to the events below on initialization, including a remembered choice, on changes and on back/forward cache restore.
- In Preview, verify both tags can fire on their respective events, including the denial tag after withdrawal. Publish the reviewed container.
function publishOraamiAnalytics(granted) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: granted === true
? 'oraami_analytics_granted' : 'oraami_analytics_denied' });
}Verify consent and capture
Decline analytics and check that the browser sends no event uploads. Accept analytics, visit a page and confirm the saved batch in Oraami Capture health. Withdraw consent and check that subsequent activity produces no uploads.