---
title: "Tracker Overview — Sealmetrics Docs"
description: "Sealmetrics' 2.2 KB JavaScript tracker (uncompressed): one-line install, no cookies or localStorage, automatic SPA detection, and size comparisons vs GA4."
canonical_url: "https://sealmetrics.com/docs/implementation/tracker/"
lang: "en"
date_modified: 2026-01-04
content_type: "implementation"
owner: "engineering"
llm_priority: "critical"
last_verified: "2026-01-04"
source: https://sealmetrics.com/docs/implementation/tracker/
publisher: Sealmetrics
---

# Tracker

Sealmetrics' 2.2 KB JavaScript tracker (uncompressed): one-line install, no cookies or localStorage, automatic SPA detection, and size comparisons vs GA4.

Ultra-lightweight JavaScript tracker for collecting analytics data.

| Specification | Value |
| --- | --- |
| Size (uncompressed, measured 3 Dec 2026) | **2,213 bytes (~2.2 KB)** |
| Dependencies | None (vanilla JavaScript) |
| Cookies | None |
| localStorage | None |
| sessionStorage | None |
| Browser support | Chrome 60+, Firefox 55+, Safari 11.1+, Edge 79+ |
| Accounts per page | One |

## Size Comparison

Script size, **uncompressed** for every script (the size of the code), against the tracker scripts of established analytics platforms. All measured on 3 December 2026. These are dated snapshots: vendors change their scripts, and so do we.

| Platform | Uncompressed | vs Sealmetrics | Measured |
| --- | --- | --- | --- |
| **Sealmetrics** | **2.2 KB** (2,213 B) | — | 3 Dec 2026 |
| Piwik PRO | ~69 KB | ~32× heavier | 3 Dec 2026 |
| Mixpanel | ~126 KB | ~58× heavier | 3 Dec 2026 |
| Matomo | ~222 KB | ~103× heavier | 3 Dec 2026 |
| PostHog | ~400 KB | ~185× heavier | 3 Dec 2026 |
| Google Analytics 4 | ~437 KB | ~202× heavier | 3 Dec 2026 |
| Adobe Analytics | ~730 KB parsed | ~330× heavier | field measurement, Jul 2026 |

Measurement methodology

One GET per script with `Accept-Encoding: gzip` and a desktop Chrome User-Agent, bytes counted on disk, on production scripts served by each vendor; the table shows the size after decompression, so that every row measures the same thing. Matomo and Piwik PRO were measured on the vendors' own demo instances; Matomo compiles installed plugins into its file, so its size varies by installation. Adobe Analytics has no single public script: the figure is the code parsed on a real site (Launch container plus AppMeasurement, a field measurement from July 2026), so it is a stack, not a single file.

Full method, raw bytes and caveats: the [Tracker Performance Report](https://sealmetrics.com/docs/guides/tracker-performance-report.md) and the [Adobe Analytics report](https://sealmetrics.com/docs/guides/tracker-performance-adobe-analytics.md).

## Quick Start

Add one line to your HTML:

```html
<script src="https://t.sealmetrics.com/t.js?id=YOUR_ACCOUNT_ID" defer></script>
```

This script:

1. Loads asynchronously (does not block page rendering)
2. Tracks the initial pageview automatically
3. Detects SPA navigation automatically (React, Vue, Angular, Next.js)

## API

| Function | Purpose | Example |
| --- | --- | --- |
| `sealmetrics()` | Manual pageview | `sealmetrics()` |
| `sealmetrics({ group })` | Pageview with content grouping | `sealmetrics({ group: 'blog' })` |
| `sealmetrics.conv(type, amount)` | Conversion | `sealmetrics.conv('purchase', 99.99)` |
| `sealmetrics.conv(type, amount, props)` | Conversion with properties | `sealmetrics.conv('purchase', 99.99, { currency: 'EUR' })` |
| `sealmetrics.micro(type)` | Microconversion | `sealmetrics.micro('add_to_cart')` |
| `sealmetrics.micro(type, props)` | Microconversion with properties | `sealmetrics.micro('add_to_cart', { product_id: 'SKU-123' })` |

## Global Variables

The tracker exposes three identical global variables:

| Variable | Recommendation |
| --- | --- |
| `sealmetrics` | Recommended (unique, no conflicts) |
| `sm` | Short form |
| `_sm` | Backup if others conflict |

```javascript
// All three work identically:
sealmetrics.conv('purchase', 99.99);
sm.conv('purchase', 99.99);
_sm.conv('purchase', 99.99);
```

## Privacy

The tracker does not collect or store:

- Cookies
- IP addresses (checked in flight against a public list of automated-traffic IPs and your IP exclusions, then discarded — never stored)
- Personal identifiable information
- Form inputs
- User credentials
- localStorage or sessionStorage data

Session identification is cookieless: the tracker computes, in the browser, a hash of standard device characteristics (no canvas fingerprinting) that is never written to the device and is re-keyed on the server with a daily salt, so nothing stored can link a device across days. See [What We Track](https://sealmetrics.com/docs/security-privacy/what-we-track.md).

## Documentation

### Getting Started

- [**Step-by-Step Guide**](https://sealmetrics.com/docs/implementation/tracker/step-by-step-guide.md) - Complete visual guide from zero to tracking
- [Installation](https://sealmetrics.com/docs/implementation/tracker/installation.md) - Script tag, content grouping, custom domains

### Tracking Events

- [Conversions](https://sealmetrics.com/docs/implementation/tracker/conversions.md) - Tracking purchases, leads, signups
- [Microconversions](https://sealmetrics.com/docs/implementation/tracker/microconversions.md) - Tracking funnel steps, engagement events

### Advanced

- [API Reference](https://sealmetrics.com/docs/implementation/tracker/api-reference.md) - Complete technical reference
- [SPA Support](https://sealmetrics.com/docs/implementation/tracker/spa-support.md) - React, Vue, Angular, Next.js integration
- [First-Party Setup](https://sealmetrics.com/docs/implementation/tracker/first-party.md) - Custom domain for tracking
- [Tracker v1 to v2: Breaking Changes](https://sealmetrics.com/docs/implementation/tracker/migration-from-v1.md) - Breaking changes and code examples
