Google Tag Manager Container Template
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
- Download
sealmetrics-gtm-template.json - Go to Google Tag Manager > Admin > Import Container
- Upload the JSON file
- Choose "Merge" and select "Rename conflicting tags"
- Go to Variables and update
SealMetrics Account IDwith your Account ID
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:
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:
dataLayer.push({
event: 'sealmetrics_micro',
microEventType: 'add_to_cart',
microEventProperties: {
product_id: '123',
product_name: 'Product Name'
}
});
4. SealMetrics - E-commerce Purchase
- Trigger: Custom Event
purchase - Purpose: Track purchases from standard e-commerce dataLayer
- Compatible with: GA4 e-commerce, UA Enhanced Ecommerce
This tag automatically converts your existing e-commerce 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 | E-commerce object | (from dataLayer) |
E-commerce DataLayer Format
The template is compatible with standard e-commerce dataLayer format:
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
dataLayer.push({
event: 'sealmetrics_conversion',
conversionType: 'lead',
conversionValue: 0,
conversionProperties: {
source: 'contact_form',
campaign: 'spring_sale'
}
});
Track Newsletter Signup
dataLayer.push({
event: 'sealmetrics_micro',
microEventType: 'newsletter_signup',
microEventProperties: {
form_location: 'footer',
list_id: 'main_newsletter'
}
});
Track Add to Cart
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
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 e-commerce tracking configured, the template will automatically capture purchase events. Your existing dataLayer pushes will work without modification:
// 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 or store personal data. No consent banner required.
Troubleshooting
Tags not firing
- Check GTM Preview mode
- Verify the trigger conditions are met
- Ensure dataLayer events use the correct event names
Purchases not tracking
- Verify your e-commerce dataLayer format matches the expected structure
- Check the
purchaseevent fires on the confirmation page - Review variables in GTM Preview mode
Missing data
- Check that all required properties are being passed
- Verify variable mappings in the tag configuration