---
title: "GTM Container Template — Sealmetrics Docs"
description: "Ready-to-import Google Tag Manager container template with pre-configured Sealmetrics tags, triggers, and variables for pageviews and conversions."
canonical_url: "https://sealmetrics.com/docs/integrations/tag-management/gtm-template/"
lang: "en"
date_modified: 2026-01-05
content_type: "implementation"
owner: "engineering"
llm_priority: "critical"
last_verified: "2026-01-05"
source: https://sealmetrics.com/docs/integrations/tag-management/gtm-template/
publisher: Sealmetrics
---

# 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.

Quick Installation

This template includes all the tags, triggers, and variables you need. Just import, configure your Account ID, and publish.

## 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](https://github.com/sealmetrics/gtm-template/raw/main/sealmetrics-gtm-template.json)

## 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

| Variable | Description | Default |
| --- | --- | --- |
| `SealMetrics Account ID` | Your account ID | `YOUR_ACCOUNT_ID_HERE` |
| `SealMetrics Pixel URL` | Pixel endpoint | `https://t.sealmetrics.com` |
| `Conversion Type` | Type of conversion | `conversion` |
| `Conversion Value` | Monetary value | `0` |
| `Conversion Properties` | Additional data | `{}` |
| `Micro Event Type` | Event name | `event` |
| `Micro Event Properties` | Additional data | `{}` |
| `Ecommerce Data` | eCommerce 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](https://sealmetrics.com/docs/compliance/germany-ttdsg-self-assessment.md)).

## 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

## Related documentation

- [Google Tag Manager Template](https://sealmetrics.com/docs/integrations/google-tag-manager.md) — the no-code template guide with the recommended Initialization trigger.
- [Advanced GTM Integration](https://sealmetrics.com/docs/integrations/google-tag-manager-advanced.md) — the `?auto=0` manual mode and buffer stub for dynamic values on the first pageview.
- [Installation](https://sealmetrics.com/docs/implementation/tracker/installation.md) — how the underlying Sealmetrics tracker loads outside of GTM.
- [Understanding Event Properties in Sealmetrics](https://sealmetrics.com/docs/implementation/custom-properties/event-properties.md) — the event and property model behind the conversion and microconversion tags.
- [Integrations Overview](https://sealmetrics.com/docs/integrations.md) — browse every platform Sealmetrics supports.
