Docs · Install

Install Statlark on Webflow

Add the tracker to Webflow's site-wide head code, then publish.

Using an AI coding tool?Point it at this page as markdown: webflow.md

Where it goes

Site settings → Custom code → Head code.

Steps

  1. Check your plan first. Custom code needs an active Site plan on this site, or a Core, Growth, Agency or Freelancer Workspace.
  2. Open the site's Site settings, then the Custom code tab.
  3. Paste the snippet into Head code, with your site ID from Settings → Install. Paste just the script tag; don't wrap it in <head>.
  4. Click Save changes, then publish your site. The code doesn't go live until you do.

Site settings → Custom code → Head code

<script defer src="https://statlark.com/script.js" data-website-id="YOUR_SITE_ID"></script>

The tag sets a first-party analytics cookie as soon as it loads. Where the law asks for consent first, such as for visitors in the EU or UK, install the consent banner in its place: it loads the tracker only after the visitor accepts. Or switch on cookieless mode, which stores nothing on the device.

Check it’s working

After you publish, open your published site, not the Designer. View the page source and search for script.js.

Then open Settings → Install in Statlark and look under Verification. It says “You're live” once the site's first event arrives, usually within seconds. On a site that already had traffic it's green already, so the real test is your own visit: open your live site, then find yourself on the Overview with the Now range. A browser you excluded with ?statlark_ignore=1 won't show up.

Good to know

  • If you also publish to your webflow.io staging domain, the tracker runs there too, and those visits count. Add the staging host as a Hostname rule under Settings → Traffic exclusions.
  • Custom code doesn't run in the Designer's canvas. Check on your published site.

Other platforms

Next.js · WordPress · Shopify · Google Tag Manager · npm · anything else

Sources

These steps were checked against the pages below on .

Last reviewed