InstallAdd the snippet

Add the snippet

Three steps. The dashboard walks you through the same three when you add a site.

The three steps

Add your site

In Lynq, choose Add site and enter a name and the hostname, for example example.com. Only the hostname: no https://, no path. www. is ignored, so www.example.com and example.com are the same site. More hostnames can be added later in site settings.

Paste one line

Add this to the <head> of every page, with your hostname in data-site:

<script defer src="https://lynq.byharsh.com/js/lynq.js" data-site="your-site.com" data-vitals></script>

data-vitals also reports Core Web Vitals for the Performance screen. Leave it off if you do not want them. Every other option is an attribute on this tag; see the script tag.

Framework guides: Plain HTML, Next.js, Astro, WordPress.

See your first pageview

Open your site in a browser. Back in Lynq, the checks turn green one by one as the data arrives: snippet reaching Lynq, hostname matching, first pageview accepted, Web Vitals reported. If one stays grey, Check it works says why.

Then pick a KPI

The last onboarding step asks for a goal to track as the KPI: a page such as /thanks, or an event such as signup. It becomes the sixth tile on the Overview and the conversion column on Sources. You can skip it and set one later on the Goals screen. See Goals and the KPI.