Webflow

Add the Lienks snippet to the head code of your Webflow site.

Before you start

Create your site and copy its site ID first (see Quick start).

Add the snippet

In Webflow, open the Site settings, go to Custom code and paste the snippet into Head code:

<script defer src="https://app.lienks.com/a.js" data-site="YOUR_SITE_ID"></script>

Save, then publish your site. The snippet only goes live after publishing.

Track a custom event

Call window.lienks?.event('signup_clicked') wherever something should be counted. More in Custom events.

<button onclick="window.lienks?.event('signup_clicked')">Sign up</button>

Add it with an Embed element.

Check that it works

Open your site. The first pageview shows up in the dashboard. If nothing arrives, see Troubleshooting.

Good to know

  • Add the site in Lienks with the domain your visitors use, not with the webflow.io address. Events from a different domain are dropped (Troubleshooting).