December 9, 2024

What is the role of IP tracking in Google Analytics?

Author: Jeff Sauer
Go to Source

Where do IP addresses factor into the world of Google Analytics? The answer to this question is both complicated and straightforward at the same time.

Google collects IP addresses from your website visitors whenever you send a hit to their systems (think each time a page finishes loading). That means every Google Analytics hit from your tags is attached to an IP address.

But Google truncates this data before it enters your analytics reports. So it’s not something you can access via the reporting interface.

To get a clear understanding of how IP tracking works in GA, let’s walk through how Google processes your analytics data. If IP tracking is essential for you, we’ll also share some tools you can use that don’t filter IP data out of their reports.

Analytics Course student question

Kate, from our Analytics Course, asked one of the most common problems I hear about IP tracking in our private Facebook Group. She wants to know if she can see the IP data in her Google Analytics reports.  Kate’s question is the perfect topic for a video because there’s often confusion around IP tracking in GA.

Analytics Course student questions

To answer Kate’s question, let’s take a look at how Google collects and processes IP Data.

There are four components of data processing in Google Analytics.

  • Collection
  • Processing
  • Configuration
  • Reporting

How data is collected by Google Analytics

Most of us only think about the reporting component of Google Analytics, because that’s where we do our work.

But, by the time our data hits the reporting stage, it’s been scrubbed and processed by Google.

Data collection and Google Analytics tracking code

The collection stage is where Google collects IP addresses. The addresses are picked up by the javascript embedded in your Google Analytics tracking code.

IP Addresses are collected by GA

There are many different ways you can install the Google Analytics tracking code on your site. Google Tag Manager is probably the easiest way to add your tracking code. You can also use gtag.js, analytics.js, or ga.js. If you’re super old school, you can even use urchin.js. (Please! Don’t use urchin.js. That was my way of telling an analytics joke!)

Each one of these tracking solutions collects IP addresses. Collecting IPs is a necessary component of data collection.

Anonymize IPs

You can anonymize the IPs coming to your site at the point of collection. Some Analytics users have to anonymize IPs due to the tracking regulations in their area.

You anonymize IPs by adding a function to your tracking code that tells Google not track IP data on your site.

You can anonymize IPs at the collection phase

Google Analytics data configuration

After collection, IP addresses enter the configuration and processing stages of Google Analytics. These stages are where you apply your filters for IPs.

IP Addresses are not processed by GA

Google Analytics IP filters

Most users filter their home/office IP address out of their reporting data. This filter prevents internal traffic from diluting their reports.

Here’s an example of an internal IP address filter.

Filter IP Addresses before processing

This exclusion filter removes traffic generated by the filtered IP from going into your reports.

Google Analytics data processing

During the processing stage, Google transfers data to a reporting database, which strips IP addresses along the way. Any IP data that hasn’t already been anonymized, or filtered, gets scrubbed at this point. Although the data from each user’s service provider (ISP) are visible in your reports, their IPs are not.

IP Addresses are not in GA reports

IP addresses are not available in your Google Analytics reports

So, while Google does collect IP addresses, Google doesn’t provide that data to end users. The bottom line is you are not able to see IP addresses anywhere in your Google Analytics reports.

You can’t even verify your exclusion filters, because Google completely removes any IP data before it gets to your reports.

Why doesn’t Google Analytics share IP address data?

There are privacy issues with collecting and sharing IP address information. Google decided a long time ago they wouldn’t store this information, and given the developments in internet privacy regulations, that stance is unlikely to change.

Tools that may track and report IP addresses

If you absolutely must collect and store IP address data, here are a few places you may want to look.

Landing page tools

Most landing page tools will show you IP address data for visitors. These tools often allow you to see which IP address visited your site. You can also view events related to those IPs, like form submission or email opt-ins.

Marketing automation tools

Many marketing automation tools utilize javascript tracking code, just like Google Analytics, to collect user data. Many of these tools also allow you to see the IP address data of users that visit your site.

I use Drip. As you can see in the example below my landing page tool, Thrive, is collecting an IP address. And Drip is tracking the IP address with my user’s data.

IP tracking in Drip

CRM (customer relationship management) tools

Many CRM tools are capable of IP address tracking. CRM systems track IPs to see if a lead has visited your site, and track that leads activity in your sales database.

Tools like Drip, will also “lead score” your you email subscribers based on visits to your site associated with their IP address.

CRM IP tracking

User analytics tools

Kissmetrics, Mixpanel, and other similar systems will show you IP data that you collect on users. These tools are designed to track users and may be a good alternative or complement to what you can collect in Google Analytics.

Web hosting and logs

Web hosting tools track and store IP addresses in their server logs. Your web host tracks IPs to help you protect your website, and allow you to manage your site’s security.

So, you do have options for IP tracking outside of Google Analytics.

But be careful what you track!

Just because you can doesn’t mean you should. How and who you choose to track is about to come under a lot more scrutiny.

The European Union’s General Data Protection Regulation (GDPR) went into effect in May of 2018. GDPR increases internet privacy for web users. But, it also has a massive impact on tracking in internet marketing.

GDRP

You can read more about whether GDPR applies to your business here – https://www.eugdpr.org/

Tracking IP addresses can tell you a lot about your website visitors. But make sure you comply with internet privacy regulations. Just because your marketing tool allows you to track IP addresses, doesn’t mean it’s a good idea!

The post What is the role of IP tracking in Google Analytics? appeared first on Jeffalytics.

Read more