Skip to content
Sealmetrics

    ↑↓ to move · Enter to open · Esc to close

    Docs menu

    Integrations · eCommerce Platforms

    Magento 2 Integration

    Install the Sealmetrics Magento 2.4+ (Adobe Commerce) module via app/code for cookieless analytics with product, cart, checkout, and purchase tracking.

    Privacy-first, cookieless analytics for Magento 2.4+ (Adobe Commerce).

    Requirements

    • Magento 2.4.0+
    • PHP 7.4+ / 8.0+

    Installation

    Download the module from your Sealmetrics dashboard, under Settings → Integrations, then install it by copying its files into app/code:

    1. Create directory: app/code/SealMetrics/Analytics
    2. Copy the module files into that directory
    3. Run commands:
    bash
    bin/magento module:enable SealMetrics_Analytics
    bin/magento setup:upgrade
    bin/magento cache:clean

    Configuration

    1. Go to Admin > Stores > Configuration > Sealmetrics > Analytics
    2. Enable the module
    3. Enter your Account ID
    4. Configure tracking options
    5. Save and clear cache

    Settings

    SettingDescription
    EnableTurn tracking on/off
    Account IDYour Sealmetrics Account ID (required)
    Pixel URLCustom pixel domain (optional)
    Track Product ViewsEnable view_item events
    Track Add to CartEnable add_to_cart events
    Track CheckoutEnable begin_checkout events
    Track PurchasesEnable purchase conversions

    Tracked Events

    Automatic Events

    EventTypeWhen
    pageviewAutoAll pages with content grouping

    eCommerce Events

    EventTypeProperties
    view_itemMicroproduct_name, product_id, sku, price, currency, category, brand
    add_to_cartMicroproduct_name, product_id, price, quantity, currency
    begin_checkoutMicrocart_total, currency, items_count
    purchaseConversionrevenue, currency, payment_method, coupon, items array

    Content Groups

    Automatic detection based on Magento layout handles:

    Page TypeGroup
    cms_index_indexhome
    catalog_product_viewproduct
    catalog_category_viewcatalog
    catalogsearch_result_indexsearch
    checkout_cart_indexcart
    checkout_index_indexcheckout
    checkout_onepage_successthankyou
    customer_account_*account

    Features

    Product Tracking

    Full product data including brand and category:

    javascript
    sealmetrics.micro('view_item', {
      product_name: 'Configurable Product',
      product_id: '123',
      sku: 'PROD-123',
      price: '99.99',
      currency: 'EUR',
      category: 'Electronics',
      brand: 'Brand Name'
    });

    Configurable Products

    Selected options are tracked automatically:

    javascript
    {
      product_name: 'T-Shirt',
      size: 'Large',
      color: 'Blue',
      // All selected options captured
    }

    Add to Cart

    Captured via Magento's customer-data events:

    javascript
    sealmetrics.micro('add_to_cart', {
      product_id: '123',
      product_name: 'Product Name',
      price: '49.99',
      quantity: '2',
      currency: 'EUR'
    });

    Purchase Tracking

    Complete order data on success page:

    javascript
    sealmetrics.conv('purchase', 149.98, {
      currency: 'EUR',
      payment_method: 'Stripe',
      coupon: 'SAVE20',
      items: [
        {
          product_id: '123',
          product_name: 'Product',
          sku: 'SKU-123',
          price: '74.99',
          quantity: '2',
          category: 'Category',
          brand: 'Brand',
          size: 'M',
          color: 'Red'
        }
      ]
    });

    Multi-store Support

    • Works with multiple store views
    • Configure per-store if needed
    • Respects store-specific currency

    Privacy

    • No cookies used
    • No order IDs stored externally
    • No customer data collected
    • Designed for GDPR and ePrivacy (self-assessed, see Compliance)
    • No consent banner for Sealmetrics' own analytics (self-assessed; Germany: open question — see Germany)

    Troubleshooting

    Module not showing in admin

    1. Run bin/magento module:status
    2. Verify module is enabled
    3. Clear cache: bin/magento cache:clean

    Tracker not loading

    1. Check configuration is enabled
    2. Verify Account ID is set
    3. Clear frontend cache
    4. View page source for script

    Purchases not tracking

    1. Check success page loads correctly
    2. Verify order status is complete
    3. Check JavaScript console for errors

    Performance

    1. Enable production mode
    2. Deploy static content
    3. Enable full page cache
    • Installation — how the underlying tracker loads, useful when configuring a custom pixel domain.
    • eCommerce Setup Guide — step-by-step setup for the eCommerce funnel events this module emits.
    • WooCommerce — the equivalent integration for WordPress + WooCommerce stores.
    • PrestaShop — a sibling self-hosted store integration.
    • Integrations Overview — browse every platform Sealmetrics supports.