Track the Impact of Google Analytics Cookie Consent on Website Traffic

If you are using a cookie consent popup (like the one below) to comply with GDPR, which allow a website user to accept or decline cookies, you would want to track the impact of this cookie consent on your website traffic, sales and conversions over time:

ga cookie consent we are using cookies 1

You can do that by following the steps below:

Step-1: Log in to your Google Analytics account and then navigate to the ‘Admin’ section.

Step-2: Click on the ‘Annotations’ link under the ‘View’ column:

ga cookie consent annotations google analytics

Annotations are notes that you tie to a specific event in Google Analytics.

Step-3: Click on the ‘New Annotation’ button:

ga cookie consent new annotation button

Step-4: Select the date on which you added the ‘cookie consent’ popup on your website and then add a small note, which can easily remind you about the event, in the near future:

ga cookie consent create new annotation

Step:5: Click on the ‘Create Annotation’ button.

Once you clicked on this button, your new annotation will appear in all GA reports, which has got an over time graph.

We are adding annotations to GA reports, in order to create a baseline for measuring website performance in terms of traffic, sales and other conversions.

Step-6: Look at your website usage data of the last one month, before you added cookie consent pop up on your website. Note down sessions, sales volume, ecommerce conversion rate and other metrics which are important to you.

Step-7: Look at your website data of the last one month, after you added the cookie consent popup on your website. Note down sessions, sales volume, ecommerce conversion rate and other metrics which are important to you.

Step-8: Compare the data you collected in step-7 with the data you collected in step-8. Start this comparison by navigating to the ‘Channels’ report (under Acquisition > All Traffic):

ga cookie consent data comparison

Most likely, you will see a decline in traffic, sales and other conversions.

This is mainly due to, losing the ability to correctly track website usage data for the visitors, who declined cookies to be placed on their device.

Most likely the traffic segment which will have the biggest negative impact is the traffic generated from EU countries.

So you would like to compare the performance of EU and non-EU traffic segments in GA.

Step-9: To do that, upload the following two custom segments in your GA property:

  1. Non-EU Traffic
  2. EU Traffic

Step-10: Apply these two segments to the ‘Channels’ report (under Acquisition > All Traffic):

ga cookie consent channels report 1

From the screenshot above, we can conclude that 71% of traffic is from non-EU countries and around 29% traffic is from eu countries.

You can get similar insight, by using these custom segments.

When you compare the data you collected in step-7 with the data you collected in step-8, while using these two custom segments, you can get detailed insight about the changes in website usage data:

ga cookie consent channels report2 1

For example, from the screenshot above, we can conclude that after adding the cookie consent pop-up on the website:

#1 There is a decline of 1.63% in website users from non-EU countries

#2 There is a decline of 8.16% in users from EU countries

You can do a similar comparison for other metrics:

ga cookie consent comparison

Note: You can hover your mouse over one of the custom segment, to get more information about the segment:

ga cookie consent more information

How to mitigate the effect of Cookie Consent Popup on website traffic

The smart way to mitigate the effect of the cookie consent popup is not to show it to non-EU website traffic.

But for that, you would need to use some type of IP lookup solution (like IPinfo, IPData) through which you can identify visitors from the EU and show the cookie consent popup, only to them.

Most IP lookup solutions charge for per lookup and depending upon your website traffic, using a lookup solution can cost you, hundreds or even thousands of dollars a month.

But that’s the price you have to pay if you want to mitigate the effect of cookie consent popup, on your website tracking.

Related Articles:

  1. How to see Organic Search Keywords in GA4 (Google Analytics 4)
  2. Google Analytics Ecommerce Tracking Tutorial
  3. Google Tag Manager Event Tracking Tutorial
  4. Google Analytics Event Tracking Tutorial
  5. Google Analytics Store Visits Tracking Tutorial
  6. Offline Conversion Tracking in Google Analytics – Tutorial
  7. Ecommerce Tracking Google Tag Manager (GTM) – Tutorial
  8. Tracking Virtual Pageviews in Google Tag Manager – Tutorial
  9. Google Tag Manager YouTube Video Tracking
  10. Google Analytics Virtual Pageviews Tutorial
  11. Google Analytics YouTube Integration & Analysis Tutorial
  12. Google Analytics for Facebook Tutorial
  13. Cross Domain Tracking in Google Analytics – Complete Guide
  14. How to use two Google Analytics codes on one page
  15. How to correctly use referral exclusion list in Google Analytics
  16. Google Analytics Calculated Metrics – Tutorial
  17. Creating your own Google Analytics Tag Auditing System
  18. Google Tag Manager Search Tracking without Query Parameter
  19. Tracking Google Analytics Paypal Referral and other payment gateways
  20. How to Track Phone Calls in Google Analytics 4 – Call Tracking Tutorial
  21. How to track leads in Google Analytics via CRM
  22. Postbacks in Google Analytics Explained
  23. Subscription & Recurring Revenue Analytics in Google Analytics
  24. Track the Impact of Google Analytics Cookie Consent on Website Traffic
  25. Tracking Offline Conversions in Google Ads
  26. Implementing Scroll Tracking via Google Tag Manager
  27. Scroll Depth Tracking in Google Tag Manager – Tutorial
  28. Site Search Tracking In Google Analytics Without Query Parameters
  29. Google Tag Manager Youtube Video Tracking via YouTube Video Trigger
  30. How to Correctly Measure Conversion Date & Time in Google Analytics
  31. Google Analytics Social Tracking – Twitter, Facebook, Google Plus and LinkedIn
  32. Cross Domain Tracking in Google Analytics – Complete Guide
  33. Google Analytics Linkedin & Twitter Tracking
  34. Creating Content Group in Google Analytics via tracking code using gtag.js
  35. Google Analytics Site Search Tracking via Query Parameters
  36. Google Analytics Site Search Tracking Tutorial
  37. Creating and Using Site Search Funnel in Google Analytics
  38. How to add Facebook Pixel to Google Tag Manager
  39. AMP Google Analytics Tracking – Learn to track AMP pages
  40. Setting up Sales Funnel across websites in Google Analytics
  41. Google Analytics 4 Regex (Regular Expressions) Tutorial

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade