Skip to content
Sealmetrics

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

    Docs menu

    Integrations · Tag Management

    Google Tag Manager Container Template

    Ready-to-import Google Tag Manager container template with pre-configured Sealmetrics tags, triggers, and variables for pageviews and conversions.

    Ready-to-import GTM container template with pre-configured tags for Sealmetrics tracking.

    Installation

    1. Download sealmetrics-gtm-template.json
    2. Go to Google Tag Manager > Admin > Import Container
    3. Upload the JSON file
    4. Choose "Merge" and select "Rename conflicting tags"
    5. Go to Variables and update SealMetrics Account ID with your Account ID
    Download Template

    Included Tags

    1. Sealmetrics - Base Tracker

    • Trigger: All Pages
    • Purpose: Loads the Sealmetrics tracker on every page

    This tag loads automatically on all pages and initializes the tracker with your Account ID.

    2. Sealmetrics - Conversion

    • Trigger: Custom Event sealmetrics_conversion
    • Purpose: Track conversions with monetary value

    Usage:

    javascript
    dataLayer.push({
      event: 'sealmetrics_conversion',
      conversionType: 'purchase',
      conversionValue: 99.99,
      conversionProperties: {
        currency: 'EUR',
        payment_method: 'credit_card'
      }
    });

    3. Sealmetrics - Microconversion

    • Trigger: Custom Event sealmetrics_micro
    • Purpose: Track engagement events (microconversions)

    Usage:

    javascript
    dataLayer.push({
      event: 'sealmetrics_micro',
      microEventType: 'add_to_cart',
      microEventProperties: {
        product_id: '123',
        product_name: 'Product Name'
      }
    });

    4. Sealmetrics - eCommerce Purchase

    • Trigger: Custom Event purchase
    • Purpose: Track purchases from standard eCommerce dataLayer
    • Compatible with: GA4 eCommerce, UA Enhanced eCommerce

    This tag automatically converts your existing eCommerce dataLayer events to Sealmetrics format.

    Variables

    VariableDescriptionDefault
    SealMetrics Account IDYour account IDYOUR_ACCOUNT_ID_HERE
    SealMetrics Pixel URLPixel endpointhttps://t.sealmetrics.com
    Conversion TypeType of conversionconversion
    Conversion ValueMonetary value0
    Conversion PropertiesAdditional data{}
    Micro Event TypeEvent nameevent
    Micro Event PropertiesAdditional data{}
    Ecommerce DataeCommerce object(from dataLayer)

    eCommerce DataLayer Format

    The template is compatible with standard eCommerce dataLayer format:

    javascript
    dataLayer.push({
      event: 'purchase',
      ecommerce: {
        purchase: {
          actionField: {
            revenue: '129.99',
            currency: 'EUR',
            coupon: 'DISCOUNT10'
          },
          products: [
            {
              id: '123',
              name: 'Product Name',
              price: '129.99',
              quantity: 1,
              category: 'Category',
              brand: 'Brand'
            }
          ]
        }
      }
    });

    Common Event Examples

    Track a Lead

    javascript
    dataLayer.push({
      event: 'sealmetrics_conversion',
      conversionType: 'lead',
      conversionValue: 0,
      conversionProperties: {
        source: 'contact_form',
        campaign: 'spring_sale'
      }
    });

    Track Newsletter Signup

    javascript
    dataLayer.push({
      event: 'sealmetrics_micro',
      microEventType: 'newsletter_signup',
      microEventProperties: {
        form_location: 'footer',
        list_id: 'main_newsletter'
      }
    });

    Track Add to Cart

    javascript
    dataLayer.push({
      event: 'sealmetrics_micro',
      microEventType: 'add_to_cart',
      microEventProperties: {
        product_id: '123',
        product_name: 'Awesome Product',
        price: '49.99',
        quantity: '1'
      }
    });

    Track Form Submission

    javascript
    dataLayer.push({
      event: 'sealmetrics_micro',
      microEventType: 'form_submit',
      microEventProperties: {
        form_name: 'quote_request',
        form_id: 'quote-form'
      }
    });

    Using with Existing GA4 Setup

    If you already have GA4 eCommerce tracking configured, the template will automatically capture purchase events. Your existing dataLayer pushes will work without modification:

    javascript
    // This existing GA4 purchase event will be captured
    dataLayer.push({
      event: 'purchase',
      ecommerce: {
        transaction_id: 'T_12345',
        value: 99.99,
        currency: 'EUR',
        items: [{
          item_id: 'SKU_12345',
          item_name: 'Product Name',
          price: 99.99,
          quantity: 1
        }]
      }
    });

    Privacy

    Sealmetrics does not use cookies, stores nothing on the device and stores no data that identifies anyone; reports are aggregated. On that basis no consent banner is needed for Sealmetrics' own analytics — our self-assessment; in Germany it is an open question (see Germany).

    Troubleshooting

    Tags not firing

    1. Check GTM Preview mode
    2. Verify the trigger conditions are met
    3. Ensure dataLayer events use the correct event names

    Purchases not tracking

    1. Verify your eCommerce dataLayer format matches the expected structure
    2. Check the purchase event fires on the confirmation page
    3. Review variables in GTM Preview mode

    Missing data

    1. Check that all required properties are being passed
    2. Verify variable mappings in the tag configuration