How do I properly paste my Universal Tracking ID in Webflow for analytics?

TL;DR
  • Add your UA Tracking ID in Webflow under Project Settings > Integrations > Google Analytics and publish your site.  
  • For GA4, paste the full GA script with your G-ID in Project Settings > Custom Code > Head and publish.

To properly add your Universal Analytics Tracking ID (like UA-XXXXXXXXX-X) to Webflow, you must paste it into the correct field in your project settings or embed it manually if needed.

1. Use Webflow's Google Analytics Integration

  • Go to Project Settings from your Webflow dashboard.
  • Click on the Integrations tab.
  • Scroll to the Google Analytics section.
  • In the Universal Analytics field, paste your Tracking ID (it should begin with "UA-").
  • Save Changes.
  • Publish your site for changes to take effect.

Note: Webflow only supports Universal Analytics if you already have a working UA ID. Google has ended support for Universal Analytics as of July 2023, so new properties should use GA4.

2. (Alternative) Manual Script Embed for GA4 or Custom Setup

If you're using Google Analytics 4 (GA4) or need a manual configuration:

  • Go to Project Settings > Custom Code.
  • In the Head Code section, paste your full GA script provided by Google (with G-XXXXXXXXXX as the ID).
  • Click Save Changes.
  • Publish your site.

This method allows you to integrate GA4, which doesn’t use a UA-style Tracking ID.

Summary

To add Universal Analytics to Webflow, paste your UA Tracking ID into the Google Analytics field under Integrations. GA4 setups require embedding the full script in Custom Code > Head. Always publish your site after making changes.

Rate this answer

Other Webflow Questions