How can I connect my new Webflow site pages with GA4 for tracking page hits and obtain the replacement analytics code to place on the site?

TL;DR
  • Create a GA4 property in Google Analytics, obtain the Measurement ID, and paste it into Webflow's Integrations settings under Google Analytics. 
  • Verify the integration by checking the GA4 Realtime section as you visit your Webflow site.

To connect your new Webflow site with Google Analytics 4 (GA4) and track page hits, you'll need to replace the older Universal Analytics tracking code with the new GA4 measurement ID in your site’s settings. Here's how:

1. Access Google Analytics

  • Sign in to your Google Analytics account.
  • Navigate to the Admin panel by clicking on the gear icon in the lower-left corner.

2. Create GA4 Property

  • If you haven't created a GA4 property yet, click on Create Property and select GA4.
  • Fill in the required property details such as property name, time zone, and currency.
  • Click Next to configure data stream settings.

3. Obtain Measurement ID

  • In your GA4 property, select Data Streams under the Property column.
  • Click on Add stream and select Web for a website data stream.
  • Enter your website’s URL and stream name.
  • Click Create Stream to generate the stream.
  • You will receive a Measurement ID (e.g., G-XXXXXXXXXX) which you will need for Webflow integration.

4. Add GA4 to Webflow

  • Log in to your Webflow account and select the project you want to track.
  • Go to the Project Settings.
  • Navigate to the Integrations tab.
  • In the Google Analytics section, paste the Measurement ID into the corresponding field.
  • Save Changes to ensure the tracking code is applied.

5. Verify Setup

  • Within the GA4 interface, go to the Realtime section to confirm that hits are being recorded from your Webflow site.
  • Visit your live Webflow site to trigger page hits, then confirm these appear in the GA4 dashboard.

Summary

By creating a GA4 property in Google Analytics and obtaining the Measurement ID, you can easily integrate GA4 with your Webflow site. Just paste the measurement ID in the Webflow Integrations settings, and you can track page hits effectively. Always ensure the integration is working by checking your GA4 Realtime data.

Rate this answer

Other Webflow Questions