{"id":1133,"date":"2021-05-10T13:01:16","date_gmt":"2021-05-10T13:01:16","guid":{"rendered":"https:\/\/vaniseo.com\/agence-web-marseille-google-analytics\/"},"modified":"2021-05-10T13:01:16","modified_gmt":"2021-05-10T13:01:16","slug":"marseille-web-agency-google-analytics","status":"publish","type":"post","link":"https:\/\/vaniseo.com\/en\/2021\/05\/10\/agence-web-marseille-google-analytics\/","title":{"rendered":"Google Analytics: How to exclude internal traffic 1\/3"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Method No. 1 \u2013 Exclude internal traffic by IP address (We recommend doing this via a web agency)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, you will learn the various steps involved in excluding internal traffic using an IP address<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 1. Define your internal IP addresses<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In <a href=\"https:\/\/analytics.google.com\/analytics\/web\/\" target=\"_blank\" rel=\"noopener\">Google Analytics<\/a> 4. Go to Admin &gt; Data Feeds and select your website\u2019s feed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then click on \u2018Markup options\u2019:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Select \"Define internal traffic\". Here, you can create new internal traffic rules. If you are working with multiple IP addresses, you can create separate rules for each IP address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To keep things simple, you can always enter \u00abinternal\u00bb in the traffic_type value field. Then, you\u2019ll only need to have a single internal traffic filter in your GA property\u2019s data settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 2. Create a developer filter in GA4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In GA4, go to Admin &gt; Data Settings &gt; Data Filters &gt; Create a filter and select \"Developer Traffic\".<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can enter any name in the \u00abData filter name\u00bb field. Set this filter to \u2018Test\u2019 (for now). Save it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 3. Create a lookup table in GTM to replace the \u2018traffic_type\u2019 parameter<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GA4 automatically adds a parameter tt = internal (traffic_type) to all requests if they originate from one of your internal IP addresses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start by creating an undefined variable. In GTM, go to Variables &gt; New &gt; Undefined and save the variable (you can simply call it \u2018Undefined\u2019).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now go to Variables &gt; Customise (in the Built-in Variables section) and enable the Debug Mode variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here, we use the \u00abDebug Mode\u00bb variable as an input. If GTM Preview Mode is enabled, this variable will return \u2018true\u2019; consequently, the lookup table variable will return the word \u2018developer\u2019. If GTM Preview Mode is not in use, the Debug Mode variable will return \u2018false\u2019; consequently, we will return \u2018undefined\u2019. This is why we have created the \u2018Undefined\u2019 variable. Save the variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, go to your Google Analytics 4 configuration tag and enter the following parameter: traffic_type. Its value should be the search table you have just created.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 4. Test the filters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now it\u2019s time to test it. Enable GTM\u2019s preview mode. Then go to your website. Open the GA4 DebugView.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, you should always see calls originating from your device. Click on any event in the event stream and check the `traffic_type` parameter. Its value should be \u2018developer\u2019.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Furthermore, in the same event, you should also see the \u2018Debug Mode\u2019 setting.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 5. Enable both filters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The final step is to enable both filters. Go to Admin (in GA) &gt; Data settings &gt; Data filters and set both triggers (internal traffic and developer traffic) to \u2018On\u2019. You can do this by opening each filter, changing its status, and then saving the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, try the test again. Browse using the IP address defined as internal.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Disable GTM preview mode. Browse your website (to send certain events to GA4).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check DebugView. You shouldn\u2019t be able to find your device or see the new events it generates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now enable GTM\u2019s preview mode. Browse the website again. Check DebugView. You should now be able to find your device and start seeing data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Created by <a href=\"\/en\/\">Vaniseo<\/a> \u2013 Your <strong>Marseille web agency<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Contact us<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Our team will get back to you within 24 hours<\/p>\n\n\n\n<div class=\"wp-block-group vn-post-cta\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"vn-post-cta-title wp-block-paragraph\">Fancy finding out how much each channel brings in?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Google Analytics 4, conversions, dashboards: we make your figures easy to understand.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"\/en\/google-analytics-4-data-marseille\/\">Discover our data services<\/a><\/div>\n<\/div>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Internal traffic by IP address. Vaniseo, your Marseille-based web agency, has put together three articles on the subject for you. Stay tuned!<\/p>","protected":false},"author":1,"featured_media":892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"wds_primary_category":0,"footnotes":""},"categories":[135],"tags":[],"class_list":["post-1133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-et-analytics"],"acf":[],"_links":{"self":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts\/1133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/comments?post=1133"}],"version-history":[{"count":0,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts\/1133\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media\/892"}],"wp:attachment":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media?parent=1133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/categories?post=1133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/tags?post=1133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}