Analytics by Sufyaan Studio provides an ultra-lightweight (1.15 KB gzipped), cookie-free JavaScript client and REST API. Install via a single script tag with defer for automatic SPA pageview capture, or use window.analytics.track() for custom conversion events.
- Universal script tag installation in under 2 minutes
- Automatic SPA history pushState/replaceState tracking
- Full custom event properties API (2 KB JSON payload capacity)
- Automatic UTM marketing source and ad click ID attribution
One-Line Quickstart
Add the lightweight script tag inside the <head> of your website. The script runs asynchronously, weighs 1.15 KB gzipped (≤1.5 KB budget, 0 dependencies), and does not block page rendering. Uses sendBeacon → fetch(keepalive) fallback.
data-web
Your website UUID. Pageviews auto-tracked, SPA via pushState.
data-host
Custom collector origin. Defaults to script origin + /c.
data-dev="true"
Allow localhost / 127.0.0.1 / *.local.
data-respect-dnt="true"
Honor navigator.doNotTrack=1.
Frontend Framework Integrations
Select your framework to view tailored copy-paste implementation snippets.
Next.js (App Router & Pages Router)
DIRECTAdd the Script component in your root layout for automatic SPA route change tracking.
Custom Events & Conversion Tracking
Track custom user interactions like signup buttons, modal triggers, billing tier upgrades, and checkout completions using window.analytics.track().
Event Validation & Payload Limits (server-enforced):
- • Name limit: 128 chars (trimmed,
p_event_name). Names starting with= + - @rejected (CSV injection guard). - • Properties payload: 2 KB JSON (`pg_column_size` cap) — objects kept, arrays/scalars wrapped as
{value: ...}, oversized truncated server-side. - • Path/Title/Query caps: 1024 / 512 / 512 chars. Bot User-Agents dropped, empty UA dropped.
- • Dedupe: Identical payload within 1s (client) + same-path pageview within 1s (server, only if last event was pageview) debounced.
- • Queue: 200 ms batch window, max 10 events/request,
sendBeacon→fetch keepalive, flushed onvisibilitychange/pagehide.
Generate Custom Event Code
Enter your event details to generate live snippets in JavaScript, Node.js, Python, PHP, and cURL.
Common Tracking Recipes
Plug-and-play patterns for tracking clicks, forms, scroll depth, and modal engagement.
Server-Side Event Ingestion
Send events from your backend, webhooks, CLI tools, or serverless workers by sending a POST /c request.
w website UUID, n event name (null=pageview), u pathname, q query (UTMs auto-parsed → utm_source etc), r referrer (host+path extracted, self dropped), t title, p JSON props (2 KB). Server IP/UA/Country derived from headers (11 headers, CIDR block via IGNORE_IP), hostname from Origin/Referer.UTM & Channel Attribution
Marketing attribution is automatic. Every pageview captures utm_source / utm_medium / utm_campaign / utm_content / utm_term and click IDs gclid / fbclid / msclkid / ttclid / li_fat_id / twclid from the URL query string. No code change needed — just use tagged URLs.
Top Channels (utm_source)
Overview → Channels panel. Filtered by date range and drill-down. Export includes channels CSV.
get_top_utm_sources(website_id, start, end)
Also: utm_medium, utm_campaign. Public share uses get_public_top_utm_sources.
What is stored per pageview:
- •
utm_sourceutm_mediumutm_campaign— truncated to 255 chars, indexed. - •
referrer_path/referrer_query— full referrer path alongside host, self-referrals nulled. - •
hostname— per-event host for multi-domain allowed_domains. - • Privacy: raw IP never stored, visitor_hash salted, all fields capped server-side. See dashboard Filters for retention-bound breakdowns.
Testing & Troubleshooting
How to verify event delivery in local files, development servers, and staging environments.
1. Testing on Local Files (file:///...)
When opening local HTML files directly, the tracker automatically detects the script source origin (e.g. http://localhost:3000) and routes events via CORS.
2. Check the Browser Network Tab
Open Browser DevTools (F12 or Cmd+Opt+I) $\rightarrow$ Network. Filter by /c to see the outgoing POST request returning 204 No Content.
3. Trigger Events via DevTools Console
Type window.analytics.track('test_event', { user: 'tester' }) in your browser console to immediately verify event delivery.
Content Security Policy (CSP) & Proxying
If your website enforces strict Content Security Policy headers, add our origin to your directives:
Official Android App & APK Sideloading
Analytics by Sufyaan Studio offers an official high-performance native Android application built with React Native and the Hermes engine. It features native 60fps charts, sub-50ms cold start, persistent offline caching, hardware Keystore biometric encryption, and in-app self-updating.
Download Analytics v2.1.0 APK (76.0 MB)
Universal signed APK for Android 10 through 15. Distributed exclusively via our official website to eliminate Google Play store telemetry.
Hardware Keystore
Biometric Fingerprint & Face Unlock using Android hardware enclave.
Daily Digest & Spikes
Receive automated traffic spike notifications powered by FCM topics.
In-App Self-Updater
Checks releases bucket on startup and installs in-place with 1 tap.
