Install Oraami for Magento Open Source and Adobe Commerce

Connect the tracker to a Magento 2.4 storefront using RequireJS and data-mage-init.

Updated Oraami Inc

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

  1. Extract app/code/Oraami/Tracker into your application. Enable Oraami_Tracker with bin/magento module:enable Oraami_Tracker and run bin/magento setup:upgrade. Complete the normal production compilation and static asset deployment for your store.
  2. In Stores → Configuration → General → Oraami → Storefront tracker, select the store view and save its collector origin and public site key. Clean the configuration and full page caches.
  3. Call the consent adapter below from your existing banner on initialization and every change. Unknown choices and withdrawal pass false. The module omits the native checkout payment page.
function publishOraamiAnalytics(granted) {
  window.oraamiStorefrontAnalytics = granted === true;
  window.dispatchEvent(new Event('oraami:storefront-analytics'));
}

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.

Related guides