Skip to content
Docs

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

AttributeWhat it does
data-website-idRequired. Your site ID. data-site-id and data-site are accepted as aliases.
data-domainOptional. Your registered domain; the server rejects events whose page is on another host.
data-hash-routingOptional, 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-excludeOptional. Comma-separated paths to skip, where * matches anything, e.g. /admin/*,/preview.
data-endpointOptional. 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