

- How to track ip address in google analytics how to#
- How to track ip address in google analytics full#
- How to track ip address in google analytics code#
- How to track ip address in google analytics plus#

If one assumes that Google is a good-faith data processor that honors the IP address anonymization request parameter, then there are several reasons why using this parameter may be important.

Why does enabling the “ aip” parameter matter? As you may already be aware, an IP address can be converted into a physical geolocation through the use of services such as or.
How to track ip address in google analytics full#
The other 86% of websites did not have this query string parameter present in their HTTPS requests to /collect, meaning they were sending their customer's full IP addresses to Google. Of these 31,639, only 4,435 (14%) had enabled the " aip" parameter. The “ aip” parameter needs to be configured for Google Analytics to anonymize a user’s IP address.īy analyzing network traffic from the 100,000 most popular websites (according to the Tranco 1M list), this analysis observed that at least 31,639 websites use Google Analytics on their webpages. Screenshot of Chrome browser Developer Tools Network panel, illustrating an HTTPS network request sent to This screenshot was taken on irs.gov, and includes the “ aip” parameter. If a website is using Google Analytics and has configured the " Anonymize IP" option, network requests made to Google's servers will include the query string parameters " aip" (or as part of the POST body). To avoid sending any data to Google, the website would have to entirely remove the Google Analytics Javascript tag. The anonymization occurs server-side, before a request is saved to disk. Note that, regardless of whether IP address anonymization is enabled, the user's IP address is still initially sent to Google's servers. Image from Google Analytics documentation, illustrating how the IP address anonymization feature works. The distinction here is whether or not Google, as a data processor, is instructed to store the full IP address on its servers. Note that, regardless of whether or not the anonymization feature is enabled, the initial HTTPS request sent will always disclose the user's IP address via the IP header. Google Analytics' measurement protocol has a configuration option that lets website administrators 'anonymize' the IP address of users before Google's servers save the IP address to disk for processing. When you open a website that has installed Google Analytics javascript on their webpage, your browser sends an HTTPS network request to /collect. For example, data pools from first-party cookies set by Google Analytics can be shared with Google Ads infrastructure. Google shares data from its Google Analytics silos with its Google Advertising Divisions. Google Analytics is a part of the Google Marketing Platform, which allows website administrators to track and analyze website traffic.
How to track ip address in google analytics plus#
All of these websites, plus several thousand others, use Google's 'free' web analytics service and have not configured IP anonymization.

If the answer to any of these is “yes”, then it is likely Google knows where you were physically sitting when you browsed these websites. You shall seek a subject matter expert or your own attorney for any legal advice based on the IP Anonymization in Google Analytics.Do you ever read The New York Times, The Atlantic, or Gizmodo online? Do you look up medical information on the Mayo Clinic's website, or shop on Home Depot's e-commerce site? Have you ever had to utilize the US Federal Trade Commission's portal? This article is intended to be used for informational purposes only and does not constitute any form of legal advice.
How to track ip address in google analytics code#
If you use the analytics.js library, insert the following line of code in your Google Analytics tracking code to anonymize user IPs.Īnd therefore the modified Google Analytics tracking code would look like this Anonymize IP addresses using analytics.js
How to track ip address in google analytics how to#
Now let’s get to know how to anonymize the IP addresses of your website visitors. So in order to anonymize your website users’ IP addresses, you’d need to make minor changes in the Google Analytics tracking code or add a new variable in your Google Tag Manager (GTM). If you already have a Google Analytics account, you might probably know that the IP anonymization feature is disabled by default. How to anonymize your website user IPs in Google Analytics?
