About this project

Official Sealmetrics template for Google Tag Manager that enables cookieless, GDPR-compliant analytics tracking. Two installation methods are available: importing a `template.tpl` file directly into Google Tag Manager's Tag Templates section, or merging a full container JSON file (`sealmetrics-gtm-template.json`) which includes pre-configured tags, triggers, and variables. After import, the user must update the SealMetrics Account ID variable. The template supports three event types: - **Pageview** — tracks visits automatically on load, including single-page application (SPA) navigation via the History API - **Microconversion** — tracks intermediate actions such as add-to-cart events or form submissions, with optional custom properties like product ID, price, and category - **Conversion** — tracks completed transactions or leads with monetary values and additional custom metadata Template fields include Event Type, Account ID, Pixel URL (defaulting to `https://t.sealmetrics.com`), Event Label, Conversion Value, Content Grouping, and a Custom Properties table for key-value pairs. Technically, the template injects the SealMetrics v2 tracker script (`t.sealmetrics.com/t.js`). The script is loaded once and cached, then calls `sealmetrics.conv()` or `sealmetrics.micro()` depending on the event type. No cookies or localStorage are used.