Is there a specific method to prevent Webflow from being included in Google Analytics 4 reports, even if excluding IP addresses does not work?

Published on
September 22, 2023

To prevent Webflow from being included in Google Analytics 4 reports, even if excluding IP addresses does not work, you can take the following steps:

  1. Create a custom dimension: In your Google Analytics 4 property, go to the Admin section and navigate to the "Data Streams" tab. Click on the relevant stream and select "Custom Definitions" > "Custom Dimensions". Create a new custom dimension and give it a name, such as "ExcludeWebflow".

  2. Configure your tracking code: In your Webflow project, go to the Project Settings > Integrations > Google Analytics section. Select "Enable" to enable Google Analytics tracking. In the "Extra Analytics Settings" section, add the following code:

    ```javascript
    gtag('config', 'GA_MEASUREMENT_ID', {
    'custom_map': {
    'dimension1': 'exclude_webflow'
    }
    });
    ```

    Replace GA_MEASUREMENT_ID with your Google Analytics Measurement ID.

  3. Modify your Global Footer code: In your Webflow project, go to Project Settings > Custom Code > Footer Code. Add the following code at the very top:

    ```javascript

    ```

  4. Publish your Webflow project: Click the "Publish" button to make your changes live.

  5. Exclude the custom dimension in GA4 reports: In your Google Analytics 4 property, go to the "Events" report under "Reports" and select "Exclusion Reporting" from the dropdown menu. Add a new exclusion and select the "ExcludeWebflow" custom dimension as the expression.

By following these steps, you can exclude Webflow activity from your Google Analytics 4 reports effectively.

Additional Questions:

  1. How can I prevent Webflow from being included in Google Analytics 4 reports?
  2. What are the steps to exclude Webflow from Google Analytics?
  3. Is there a way to exclude Webflow activity from GA4 reports besides excluding IP addresses?