# Install Statlark on Webflow

This is the markdown version of https://statlark.com/docs/install/webflow. Every docs and Learn page has one: add .md to its address. Index: https://statlark.com/llms.txt

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

## <a id="where"></a>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

```html
<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](https://statlark.com/docs/consent.md) in its place: it loads the tracker only after the visitor accepts. Or switch on [cookieless mode](https://statlark.com/docs/script-configuration.md#cookieless), which stores nothing on the device.

## <a id="check"></a>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](https://statlark.com/docs/excluding-traffic.md).
- Custom code doesn't run in the Designer's canvas. Check on your published site.

## Other platforms

[Next.js](https://statlark.com/docs/install/nextjs.md) · [WordPress](https://statlark.com/docs/install/wordpress.md) · [Shopify](https://statlark.com/docs/install/shopify.md) · [Google Tag Manager](https://statlark.com/docs/install/google-tag-manager.md) · [npm](https://statlark.com/docs/install/npm.md) · [anything else](https://statlark.com/docs/install.md#anything-else)

## Sources

These steps were checked against the pages below on 10 November 2026.

- [help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags](https://help.webflow.com/hc/en-us/articles/33961357265299-Custom-code-in-head-and-body-tags)
- [help.webflow.com/hc/en-us/articles/33961419650067-Webflow-staging-subdomain](https://help.webflow.com/hc/en-us/articles/33961419650067-Webflow-staging-subdomain)

Last reviewed 21 November 2026
