Modify Google Analytics Script To Only Cookie U.S. Sessions
-
I know I can filter sessions from outside the US, but is there a way to modify the GA script so that it doesn't cookie visitors to a site if they are from outside the US?
Note, this is separate from having a cookie consent opt-in.
Thanks in advance,
Fitz -
I'm running a game blog and hosted on Wordpress. I'm also facing the same analytics problem. Check out my website stat.
-
Hey, thanks for the response. Legal department wants to eliminate all tracking of EU visitors to their US site (i.e. no Google Analytics cookies/tracking). They already have GDPR and cookie consent implemented, but as far as legal is concerned they want no risks so they wanted to know if GA could be altered to not track site visitors from the EU while still tracking all other site visitors.
Since they don't want to block visitors from the EU from being able to visit the site and I'm not aware of a way to tell GA not to cookie visitors from specific locations, I thought I would ask if there was a way. Right now best solution I have is to redirect EU visitors to a newly created landing page (or microsite) which doesn't contain GA script. That way they can still learn about services, but there is no risk of GA tracking and they can't hit the main site where tracking is enabled.
Any better ideas are welcomed.
-
As the question is interesting, I went to search and I did not find anything that explains hoot legitimately modify the GA tracking script. May I ask you why do you want the script to not cookie non-US visitors to your website?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Can Segment capture organic traffic? If so is it more reliable than Google Analytics?
Hi mozzers, We just learned that our standard GA hasn't been as reliable as we hoped so and we are trying to find other ways to track organic sessions. Which solution would you consider? Is Segment one of them? If so, is it more reliable than Google Analytics? Thanks
Reporting & Analytics | | Ty19861 -
How To Stop Google's "Fetch & Render" From Showing Up In Google Analytics
Hi all, Within Google's "Fetch & Render" (found in Google Search Console) is the ability to index certain pages from my website on-demand. Unfortunately, every time I ask Google to index a page, it registers as a bounce in Google Analytics. Also, if it means anything, my website (www.knowtro.com) is a single-page application, functioning similarly to Google. If you guys know of any solution to this problem, please help! I originally thought that Google would know to block its own Fetch & Render crawler from Google Analytics but that doesn't seem to be the case. Thanks, Austin
Reporting & Analytics | | A_Krauss0 -
How to track in google analytic which filters selected in which category?
Hi All, Can anyone tell me how to track which filters selected in which category like in category I have 1) price ( then different - different price) 2) color ( then difference - difference colors) same for size, width, brand etc. Is it possible to track in detail via tag manager? Other than tag manager what are the best way to track filters? Please explain me technical guidance too. Thanks!
Reporting & Analytics | | adamjack0 -
Google Analytics SEO Queries Not Showing
Hi All, This might be a silly question, but for all the properties I monitor in Google Analytics, I'm now showing no data for SEO Queries under Acquisition for the past 6 days. Normally I would expect a few day delay in queries, but nothing for 6 days is somewhat peculiar especially as it was functioning fine prior to November 12th. Does anyone have insight into what might be going on? Thanks! URaNMa3
Reporting & Analytics | | amichaels0 -
Why am i seeing google.inc in analytics as direct traffic? Bug?
Recently i have seen two clients sites see a spike in direct traffic coming from google.inc. Is this a bot/bug which i should filter out. Just a bit confused why google.inc has visited our clients site 676 times! Any insight would be great.
Reporting & Analytics | | BlueWren1 -
Keeping Google Analytics Data when Moving to Subdomain
Hey All, Against my objections a client has decided to move an existing site into a subdomain while putting up a new site on the main domain. My question revolves around Google Analytics, how do I make sure that I don't lose historical data on the domain before it moves to a subdomain? We're going to be doing a redesign of the old site and I need to keep the historical data so I can prioritize content. What do I need to do? Or will Google analytics recognize the URL's and still attribute the data to those URL's or will I have a separate set of data based on the new URL (with the subdomain). Any insight would be appreciated! Thanks!
Reporting & Analytics | | EvansHunt0 -
Google Analytics - multiple counters
Hey there Mozzers! One of our customers wants to seperate one Google Analytics account into multiple accounts. The website is divided in three parts: Main: www.website.nl Sub1: www.website.nl/sub1 Sub2: http://www.website.nl/sub2 And they would like 4 different reports under one account. R1: Total count R2: Website.nl (without Sub 1 & Sub2) R3: Sub1 R4: Sub2 I know multiple counters will get in conflict with each other, so I have to implement some filters. E.g: We can configure a filter for R3 on "astmakids" in URL. My question is: is there a safe way to implement multiple Analytics filters on one website? And how will R3 see visitors that come from the root domain astmafonds.nl? Are they referrals? Thanks a lot in advance!! Partouter
Reporting & Analytics | | Partouter0 -
How do shortened links show up in Google Analytics?
Hey, How do shortened links show up in GA? So if I tweet about something and use bitly, does twitter get the referral? I am thinking not. I have never seen bitly show up as a referrer, but we gets lots of clicks from those links. Hmmmm. Anyone? E
Reporting & Analytics | | ErinTM0