The Keupera tracker is a lightweight (under 2 KB), cookieless JavaScript snippet that streams pageviews into the Analytics module. It populates the Website summary, daily traffic, top pages, referrers, devices, browsers, and geo breakdowns.Documentation Index
Fetch the complete documentation index at: https://docs.keupera.com/llms.txt
Use this file to discover all available pages before exploring further.
How it works
- No cookies. A
keupera_session_idis generated insessionStorageand reset when the tab closes. - Uses
navigator.sendBeaconso the request never blocks navigation; falls back tofetchon older browsers. - Captures URL, path, hostname, referrer, and UTM parameters automatically.
- Skips common sensitive paths (
/wp-admin,/wp-login,/admin,/.env,/.git).
Get your Tracking API key
Open API Keys
Go to Account → API Keys in your dashboard.
Install on any website
Paste this snippet just before</head> on every page you want to track:
DOMContentLoaded and fires a pageview event automatically.
Platform-specific install
WordPress
WordPress
Install the Keupera Connector plugin. It injects the snippet into
wp_head automatically when Enable Website Analytics is on (default). The plugin uses your Tracking key if provided, otherwise it falls back to the connected Full Access key.Framer
Framer
Install the Keupera plugin from the Framer marketplace and paste your Tracking key. The plugin handles the snippet injection.
Next.js / React
Next.js / React
Add the following to your root layout (Or use
app/layout.tsx). Set NEXT_PUBLIC_KEUPERA_TRACKING_KEY in your .env.local.next/script — set window.KEUPERA_API_KEY in a beforeInteractive Script and load the tracker with strategy="afterInteractive".Webflow / Squarespace / Wix
Webflow / Squarespace / Wix
Add the snippet in Site Settings → Custom Code → Header. The exact path varies per builder but every modern site builder supports a global
<head> injection field.Custom events (optional)
After the tracker loads,window.keupera.track(eventName, properties) is available for custom events:
Verify the install
- Open your live site in a new browser tab.
- Open DevTools → Network and filter by
track. You should see aPOSTtohttps://sqnxgokfnvdglftrgekd.supabase.co/functions/v1/trackreturning204. - In Keupera, open Analytics → Website Summary. New sessions appear within ~30 seconds.
Keupera Analytics: API Key not found in the console, the window.KEUPERA_API_KEY assignment ran after the tracker — make sure the key <script> block sits before the tracker <script> tag.