blog bg
August 7, 2026

How to add google analytics to Webflow ?

Setting up Google Analytics 4 (GA4) in Webflow takes under 5 minutes. You can integrate it using Webflow's native integration (no code required, available on all site plans) or by injecting the gtag.js script via custom code.

Step 1: Get Your GA4 Measurement ID

  1. Log in to Google Analytics.
  2. Go to Admin (gear icon) > Data Streams and select your Web stream.
  3. Copy your Measurement ID (it starts with G-, GT-, or GTM-).

Method 1: Native Webflow Integration (Recommended)

Webflow's native integration routes tracking through Google Tag Gateway via Webflow’s CDN proxy, improving accuracy against ad blockers and enabling automatic e-commerce event tracking without writing code.

  1. Open your Webflow Dashboard, click the three dots (...) on your site card, and select Site Settings.
  2. Navigate to the Apps & Integrations (or Integrations) tab.
  3. Locate the Google Analytics / Google Tag field.
  4. Paste your Measurement ID (G-XXXXXXXXXX).
  5. Click Save Changes, then Publish your site to live domains.

Method 2: Custom Code Injection (<head> Tag)

Use this method if you are managing tracking via Google Tag Manager (GTM) or require custom script modifications. Note: Requires a paid Webflow Site or Workspace Plan.

  1. In Google Analytics, go to Admin > Data Streams > Web Stream > View tag instructions.
  2. Select Install manually and copy the entire gtag.js code snippet.
  3. In Webflow, go to Site Settings > Custom Code.
  4. Paste the snippet into the Head Code field.
  5. Click Save Changes and Publish your site.

Feature Native Integration Custom <head> Code
Webflow Plan Required Free & Paid Plans Paid Site/Workspace Plan
Setup Effort Copy-paste ID only Copy-paste full JS snippet
Google Tag Gateway (Proxy) Enabled automatically Manual setup required
Auto E-Commerce Events Native support Requires custom dataLayer code

How to Verify the Integration

  1. Open your published Webflow site in a new browser tab or incognito window.
  2. Open Google Analytics and navigate to Reports > Realtime.
  3. Confirm that active user count increases to at least 1 within 30 seconds.

Crucial Rule: Never use both Native Integration and Custom Code simultaneously. Dual installation will trigger duplicate pageviews and distort your conversion metrics.

Tarun CEO
Nishant
Technical SEO Expert
With 5+ years of experience as a Google Certified SEO Expert, Nishant specializes in optimizing Webflow websites for maximum search engine performance.His expertise helps businesses achieve higher visibility, drive organic traffic, and maintain long-term growth in search engine rankings.
SEO
Digital Marketing
Webflow SEO
Welcome to our website!

Nice to meet you! If you have any question about our services, feel free to contact us.

Chat with us