Skip to content
Sealmetrics

    ↑↓ to move · Enter to open · Esc to close

    Docs menu

    Implementation

    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.

    SpecificationValue
    Size (uncompressed, measured 3 Dec 2026)2,213 bytes (~2.2 KB)
    DependenciesNone (vanilla JavaScript)
    CookiesNone
    localStorageNone
    sessionStorageNone
    Browser supportChrome 60+, Firefox 55+, Safari 11.1+, Edge 79+
    Accounts per pageOne

    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.

    PlatformUncompressedvs SealmetricsMeasured
    Sealmetrics2.2 KB (2,213 B)—3 Dec 2026
    Piwik PRO~69 KB~32× heavier3 Dec 2026
    Mixpanel~126 KB~58× heavier3 Dec 2026
    Matomo~222 KB~103× heavier3 Dec 2026
    PostHog~400 KB~185× heavier3 Dec 2026
    Google Analytics 4~437 KB~202× heavier3 Dec 2026
    Adobe Analytics~730 KB parsed~330× heavierfield measurement, Jul 2026

    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

    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
    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.

    Documentation

    Getting Started

    Tracking Events

    Advanced