Overview
This website uses cookies to give you as a visitor a good experience by remembering your chosen settings on repeat visits. Cookies categorized as necessary are saved in your browser for basic functionality of the website. We also use third-party cookies that help us analyze and understand how the website is used. These cookies are only saved in your browser after your consent. You can opt out of these cookies.
Always active
Necessary cookies are absolutely necessary for the website to work for you as a visitor. These cookies ensure basic functionality and security of the website.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information about metrics for the number of visitors, bounce rate, traffic source, etc.
Marketing cookies are used to provide visitors with relevant advertisements and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Exclude internal traffic in Google Analytics 4

In order for your statistics in Google Analytics to be more accurate, it is good to exclude your own and your colleagues' traffic from the statistics.

To perform this guide, you need to have installed Google Analytics 4 on your website, as well as have rights to make settings on the property

Time needed: 15 minutes

How to add a rule to exclude internal traffic from IP numbers in Google Analytics 4.

  1. Log in to your Google Analytics account

    Go to analytics.google.com, log in and select the property the rule should apply to.

  2. Go to Data Streams

    click Administrator > Data streams

    Dataströmmar i Google Analytics 4

  3. Go to current data flow

    Click on your data flow through which the traffic on the website comes in. Most likely, only a data flow is set up.

  4. Click Set tag settings


    Ange tagginställningar i Google Analytics 4

  5. Click Show All under Tag Settings


    Visa allt under tagginställningar

  6. Click Define internal traffic


    Definiera intern trafik Google Analytics 4

  7. Select Create

    Skapa regel för intern trafik i Google Analytics 4

  8. Enter IP number for internal traffic

    Fill in the settings for the rule that will filter out the internal traffic.

    Set the match type to IP address is equal to if you are not going to make a more advanced rule, and fill in the IP address to be tagged as internal traffic.

    Don't forget to press Create when you are done.

    Inställningar för intern trafik i Google Analytics 4

Now you have a rule that tags all traffic from the specified IP number as internal traffic, and is excluded from your statistics.