Skip to main content

Tracker

Ultra-lightweight JavaScript tracker for collecting analytics data.

SpecificationValue
Size (minified)~2,228 bytes
Size (gzipped)~1,227 bytes
DependenciesNone (vanilla JavaScript)
CookiesNone
localStorageNone
sessionStorageNone
Browser supportChrome 60+, Firefox 55+, Safari 11.1+, Edge 79+
Accounts per pageOne

Size Comparison​

Privacy-First Analytics​

PlatformMinifiedGzippedvs Sealmetrics
Sealmetrics2.2 KB1.1 KB—
Plausible3.0 KB1.3 KB~same
Fathom6.2 KB1.9 KB1.5x heavier
Simple Analytics7.5 KB3.8 KB3.1x heavier

Enterprise Analytics​

PlatformMinifiedGzippedvs Sealmetrics
Sealmetrics2.2 KB1.1 KB—
Mixpanel91 KB29.8 KB23x heavier
PostHog176 KB56.4 KB43x heavier
Matomo224 KB65.2 KB50x heavier
Google Analytics 4365 KB129.6 KB99x heavier
Adobe Analytics695 KB150.7 KB117x heavier
Measurement methodology

All sizes measured in February 2026 by downloading production scripts directly from each vendor's CDN. Gzipped sizes calculated using standard gzip compression. Adobe Analytics measured from a real-world implementation (includes Adobe Launch + extensions).

Quick Start​

Add one line to your 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​

FunctionPurposeExample
sealmetrics()Manual pageviewsealmetrics()
sealmetrics({ group })Pageview with content groupingsealmetrics({ group: 'blog' })
sealmetrics.conv(type, amount)Conversionsealmetrics.conv('purchase', 99.99)
sealmetrics.conv(type, amount, props)Conversion with propertiessealmetrics.conv('purchase', 99.99, { currency: 'EUR' })
sealmetrics.micro(type)Microconversionsealmetrics.micro('add_to_cart')
sealmetrics.micro(type, props)Microconversion with propertiessealmetrics.micro('add_to_cart', { product_id: 'SKU-123' })

Global Variables​

The tracker exposes three identical global variables:

VariableRecommendation
sealmetricsRecommended (unique, no conflicts)
smShort form
_smBackup if others conflict
// 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.

Documentation​

Getting Started​

Tracking Events​

Advanced​

Written and maintained by the Sealmetrics Team