Webflow sync, pageviews & more.
NEW

What is the process for adding Segment to Webflow?

TL;DR
  • Get your Segment tracking snippet with write key from your Segment workspace.
  • Paste the snippet into the Head Code section in Webflow's Custom Code settings, then publish the site to enable tracking.

To add Segment to a Webflow site, you need to embed the Segment tracking snippet into your Webflow project so it loads on every page where tracking is needed.

1. Get Your Segment Write Key

  • Log in to Segment and go to your workspace.
  • In your Sources tab, choose or create a Javascript Website source.
  • Copy the tracking snippet, which includes your write key.

2. Add the Snippet to Webflow Site-Wide

  • In Webflow, go to your project and click Project Settings.
  • Navigate to the Custom Code tab.
  • Paste the Segment snippet into the Head Code section.
  • This ensures it loads early and tracks all visitors.
  • Save changes, then Publish your site.

3. Confirm the Snippet is Working

  • Visit your published Webflow site in an incognito window.
  • Use browser developer tools to check if the Segment script is loading.
  • In Segment, go back to your source and verify that events are appearing in the Debugger tab.

4. Optional: Set Up Additional Destinations

  • In Segment, go to your Connections → Destinations.
  • Add tools like Google Analytics, Mixpanel, or Facebook Pixel.
  • Segment will automatically forward events from your Webflow site to these tools once set up.

Summary

To integrate Segment with Webflow, add the tracking snippet with your write key to the Head Code section of your site’s Custom Code settings, then publish your site. This will allow Segment to collect and forward visitor data to any connected destinations.

Rate this answer

Other Webflow Questions