Skip to content

Install on Webflow

Paste the tag into Custom code head, then publish: custom code only runs on published Webflow sites.

Webflow has a site-wide custom code field, so you do not need to touch individual pages or embed anything on the canvas. One paste covers the whole site, including pages generated from a CMS collection.

Where it goes

  1. Open custom code

    Site settings › Custom code, then the Head code box.

  2. Paste and publish

    Paste the tag, save changes, then publish the site. Nothing happens until you publish.

html
<script defer data-website-id="ws_XXXXXXXX" data-domain="yourstartup.com" src="https://statsy.co/js/script.js"></script>

Confirm it works

Open the published site and check Live. The Webflow designer and preview mode do not run custom code, so test on the real site. If nothing arrives, view source on a published page and search for statsy; if the tag is missing, the last publish did not include the settings change.

The webflow.io staging domain is dropped

Publishing to the yoursite.webflow.io staging domain sends beacons from a host that is not yours, and they are discarded. Publish to your custom domain, or add the staging host under Site settings › General › Additional domains if you want staging traffic in the same reports.

Tip. Page-level custom code exists too, but keep the tag site-wide. Adding it in both places gives a page two tags and double pageviews.

Last updated · Markdown version