Google Tag Manager Template
The Sealmetrics GTM Template allows you to install and configure Sealmetrics tracking on your website directly from Google Tag Manager, without writing any code. Track pageviews, conversions, and microconversions with full attribution — all while maintaining GDPR compliance.
Features
- No-code installation — Configure everything through GTM's visual interface
- Three event types — Pageviews, microconversions, and conversions
- Custom properties — Attach additional data to any event
- Cookieless tracking — GDPR-compliant analytics without consent banners
Installation Options
You have two ways to install the Sealmetrics template:
Option 1: Community Template Gallery (Recommended)
The Sealmetrics template has been submitted to Google's Community Template Gallery and is currently pending review. Once approved, you'll be able to install it directly from within GTM.
Once approved, to install from the Gallery:
- In Google Tag Manager, go to Templates in the left sidebar
- Click Search Gallery in the Tag Templates section
- Search for "Sealmetrics"
- Click on the template and then Add to workspace
- Confirm by clicking Add
Option 2: Manual Import (Available Now)
You can import the template manually right now:
-
Download the template file:
Download template.tplOr clone the repository:
git clone https://github.com/sealmetrics/gtm-template.git -
In Google Tag Manager, go to Templates in the left sidebar
-
In the Tag Templates section, click New
-
Click the three dots menu (⋮) in the top-right corner
-
Select Import
-
Choose the downloaded
template.tplfile -
Click Save to add the template to your workspace
Configuration
Once the template is installed, you can create tags using it.
Creating a New Tag
- Go to Tags in the left sidebar
- Click New
- Click on Tag Configuration
- Select Sealmetrics Tracking from the list
- Configure the tag settings (see below)
- Add a Trigger (e.g., "All Pages" for pageviews)
- Save the tag
Tag Settings
Event Type
Choose what type of event to track:
| Event Type | Use Case | Example |
|---|---|---|
| Pageview | Track page loads | Every page visit |
| Microconversion | Track intermediate actions | Add to cart, form start, video play |
| Conversion | Track completed goals | Purchase, lead form submit, signup |
Account ID (Required)
Your Sealmetrics Account ID. Find it in your Sealmetrics dashboard under Settings.
- Log in to Sealmetrics
- Click your profile icon in the top-right
- Go to Tags & Connectors
- Your Account ID is displayed in the tracking code section
Event Label (Microconversions & Conversions)
A descriptive name for the event. Use clear, consistent naming:
purchase— For completed ordersadd_to_cart— For add-to-cart clickslead_form_submit— For lead generationnewsletter_signup— For email subscriptionscheckout_step_1,checkout_step_2— For funnel steps
Conversion Value (Conversions only)
The monetary value of the conversion. For e-commerce, this is typically the order total.
You can use a GTM variable to dynamically pass the value:
- Create a Data Layer Variable for your order total
- Reference it like
{{Order Total}}
Content Grouping (Pageviews only)
Optional. Group pages by category for better analytics:
blog— Blog postsproduct— Product pagescategory— Category listingscheckout— Checkout flow pageslanding— Landing pages
Don't Count as Pageview
Enable this checkbox when firing a microconversion or conversion on the same page where a pageview tag already fires. This prevents duplicate pageview counts.
Example: On a thank-you page, you have both:
- A pageview tag (fires on page load)
- A conversion tag (fires on page load)
Enable this option on the conversion tag to avoid counting two pageviews.
Custom Properties
Add key-value pairs to attach additional data to events:
| Property Name | Property Value | Use Case |
|---|---|---|
product-id | SKU12345 | Track which product was purchased |
product-name | Blue Widget | Human-readable product name |
order-id | ORD-98765 | Link to your order system |
payment-method | credit_card | Payment analytics |
coupon-code | SAVE20 | Track promo code usage |
Use kebab-case for property names (e.g., product-id, not productId).
Complete Setup Examples
Example 1: Basic Pageview Tracking
Track all page loads on your website:
Tag Configuration:
- Event Type: Pageview
- Account ID: Your account ID
- Content Grouping: (optional) Use a variable like
{{Page Type}}
Trigger: All Pages
Example 2: E-commerce Purchase Tracking
Track completed purchases with order value:
Tag Configuration:
- Event Type: Conversion
- Account ID: Your account ID
- Event Label:
purchase - Conversion Value:
{{Order Total}}(Data Layer variable) - Don't count as pageview: ✓ Enabled
- Custom Properties:
order-id→{{Order ID}}payment-method→{{Payment Method}}
Trigger: Custom Event — purchase or Thank You Page view
Example 3: Add to Cart Microconversion
Track when users add products to their cart:
Tag Configuration:
- Event Type: Microconversion
- Account ID: Your account ID
- Event Label:
add_to_cart - Don't count as pageview: ✓ Enabled
- Custom Properties:
product-id→{{Product ID}}product-name→{{Product Name}}
Trigger: Custom Event — add_to_cart click
Example 4: Lead Form Submission
Track contact form submissions:
Tag Configuration:
- Event Type: Conversion
- Account ID: Your account ID
- Event Label:
lead_form_submit - Don't count as pageview: ✓ Enabled
Trigger: Form Submission on contact page
Using Data Layer Variables
For dynamic values (order totals, product IDs, etc.), push data to the GTM Data Layer and create variables.
Push Data to Data Layer
Add this code when an event occurs (e.g., on your thank-you page):
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'purchase',
orderTotal: 149.99,
orderId: 'ORD-12345',
paymentMethod: 'credit_card'
});
</script>
Create Data Layer Variables in GTM
- Go to Variables → New
- Choose Data Layer Variable
- Set Data Layer Variable Name to
orderTotal - Name it
Order Totaland save - Repeat for other values (
orderId,paymentMethod, etc.)
Use Variables in Your Tag
Reference variables in your tag configuration:
- Conversion Value:
{{Order Total}} - Custom Properties:
order-id→{{Order ID}}
Testing Your Setup
Preview Mode
- Click Preview in GTM
- Navigate your website
- Verify tags fire on the correct pages/events
- Check that values are passed correctly
Debug in Sealmetrics
- Log in to Sealmetrics
- Go to your account dashboard
- Check Real-time data to see incoming events
- Verify pageviews and conversions appear correctly
Browser Developer Tools
- Open Developer Tools (F12)
- Go to the Network tab
- Filter by
sealmetrics - Verify requests are being sent with correct parameters
Troubleshooting
Tag not firing
- Check your Trigger configuration
- Verify the trigger conditions match the page/event
- Use GTM Preview mode to debug
Values not passing correctly
- Verify Data Layer variables are configured correctly
- Check that data is pushed before the tag fires
- Test variable values in Preview mode
Duplicate pageviews
Enable "Don't count as pageview" on conversion/microconversion tags that fire on pages where a pageview tag also fires.
No data in Sealmetrics
- Verify your Account ID is correct
- Check that tags are firing (use Preview mode)
- Wait a few minutes — data may take time to appear
- Ensure your website domain is registered in Sealmetrics
Resources
- GitHub Repository: github.com/sealmetrics/gtm-template
- Direct Download: template.tpl
- Google Tag Manager: tagmanager.google.com
- Sealmetrics Dashboard: app.sealmetrics.com
Support
Need help with the GTM template?
- GitHub Issues: Report bugs or request features
- Email: support@sealmetrics.com
- Documentation: Full Sealmetrics docs