Get from zero to your first funnel
Two lines of HTML, no SDK, no build step. Works on any stack.
1 · Add the snippet
Add the two lines below before </head>. The script is ~1.5 KB gzipped, sets no cookies and stores nothing in the visitor’s browser. Your site ID is shown on the install screen after you add a site. The one-line stub on top queues any window.linqry(...) calls made before the script loads.
<script>window.linqry=window.linqry||function(){(window.linqry.q=window.linqry.q||[]).push(arguments)}</script>
<script defer data-website-id="YOUR_SITE_ID" data-domain="yourdomain.com" src="https://linqry.com/t.js"></script>Page views, including SPA route changes, are captured automatically from this point.
Script attributes
| Attribute | What it does |
|---|---|
data-website-id | Required. Your site ID. data-site-id and data-site are accepted as aliases. |
data-domain | Optional. Your registered domain; the server rejects events whose page is on another host. |
data-hash-routing | Optional, no value. Counts changes to the URL hash (#/route) as page views, for hash-based routers, and reports each route as its own page (/#/pricing). data-exclude patterns then match the route too, e.g. /#/admin/*. |
data-exclude | Optional. Comma-separated paths to skip, where * matches anything, e.g. /admin/*,/preview. |
data-endpoint | Optional. Overrides where beacons are sent. Defaults to /api/collect on the script's origin; most sites never need it. |
Ad blockers can block analytics scripts, so a small share of visits may not be counted. To exclude your own browser, run localStorage.setItem('linqry_ignore', 'true') in the console on your site. Platform-specific steps are in the install guides.
2 · Send your first event
From JavaScript, or from any HTML element:
window.linqry('signup-completed');
<button data-linqry-event="cta-clicked">Get started</button>Properties and revenue are optional. See custom events and revenue tracking.
3 · Build your first funnel
In the dashboard, open Funnels → + Add funnel and pick the steps that matter. Any custom event or URL path works, so you can build a funnel without shipping new instrumentation. You get the number of visitors at every step and the drop-off between steps, recomputed for whatever date range you pick. More on funnel analysis.
4 · Verify it works
Open your site in a new tab and watch the Realtime view: your visit appears within seconds. The browser endpoint answers 204 whether or not an event was accepted, so the Realtime view is the way to confirm the installation, not the network tab.
Where next
Send events from JavaScript or plain HTML attributes — plus the events Linqry records for you automatically.
Attach an amount to any event, from the browser or your backend, and see revenue by source, campaign, country and device.
Send events from your backend — webhooks, cron jobs, payment confirmations — with a single authenticated POST.
Public read-only dashboards behind a revocable token, and five embeddable widgets for your own pages.
Turn pages and events into conversion goals and multi-step funnels, and read conversion and drop-off for any date range.
Store UTM tags in campaigns, create short links that add them on every click, download QR codes and read clicks per link.
Give teammates and clients their own access to a site as an admin or a viewer, and see exactly what each role can do.
Why visits or events don't show up in Linqry, and how to fix each cause, from the snippet to server-side API errors.
What Linqry stores, what it never stores, how visitors are counted, and what that means for cookie banners.