{"id":1137,"date":"2021-05-17T08:00:44","date_gmt":"2021-05-17T08:00:44","guid":{"rendered":"https:\/\/vaniseo.com\/agence-marketing-digitale-marseille-google-analytics-trafic-interne\/"},"modified":"2021-05-17T08:00:44","modified_gmt":"2021-05-17T08:00:44","slug":"digital-marketing-agency-in-marseille-google-analytics-internal-traffic","status":"publish","type":"post","link":"https:\/\/vaniseo.com\/en\/2021\/05\/17\/agence-marketing-digitale-marseille-google-analytics-trafic-interne\/","title":{"rendered":"Google Analytics: How to exclude internal traffic 3\/3"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Method No. 3 \u2013 Exclude internal traffic based on a cookie<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Another way to exclude internal traffic in Google Analytics 4 could be to use a cookie. You ask your staff to visit a specific, unique URL, then set a cookie using GTM and use its value in the lookup table variable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 1. Set a cookie for internal users<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If most of your employees use Safari (or browse on iOS), Intelligent Tracking Prevention will limit the lifespan of a cookie, and your employees will often need to revisit that unique link.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, go to Google Tag Manager and create a custom HTML tag, then paste the following code into it:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1208\" height=\"868\" src=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/balise-HTML-personnalisee.png\" alt=\"Web marketing agency \u2013 custom HTML tag\" class=\"wp-image-897\" srcset=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/balise-HTML-personnalisee.png 1208w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/balise-HTML-personnalisee-300x216.png 300w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/balise-HTML-personnalisee-1024x736.png 1024w\" sizes=\"auto, (max-width: 1208px) 100vw, 1208px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Configure this tag so that it fires on a page-view event when the page URL contains `internal_user = true`.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 2. Cookie variable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to GTM &gt; Variables &gt; First-party cookies and enter the following settings:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"628\" src=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-de-cookie.png\" alt=\"Web marketing agency \u2013 cookie variable\" class=\"wp-image-898\" srcset=\"https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-de-cookie.png 462w, https:\/\/vaniseo.com\/wp-content\/uploads\/2026\/10\/variable-de-cookie-221x300.png 221w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Save the variable<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2981 Step 4. Create a developer filter in GA4<\/h3>\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\">Next, test everything again.<\/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>Digital marketing agency in Marseille: Google Analytics, excluding internal traffic, websites, creation and redesign of e-commerce and showcase websites.<\/p>","protected":false},"author":1,"featured_media":899,"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-1137","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\/1137","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=1137"}],"version-history":[{"count":0,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/posts\/1137\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media\/899"}],"wp:attachment":[{"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/media?parent=1137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/categories?post=1137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vaniseo.com\/en\/wp-json\/wp\/v2\/tags?post=1137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}