How to track the impact of cookie consent on website traffic in Google Analytics

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:

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:

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

Step-3: Click on the ‘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:

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.

You can learn more about creating and viewing annotation in a GA report, from the video below:

 

We are adding annotation 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 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):

Most likely, you will see 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 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):

From the screenshot above, we can conclude that 71% 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:

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 similar comparison for other metrics:

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

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

The smart way to mitigate the effect of cookie consent popup, is not to show it, to the 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 thousand 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:

Other Articles on Specialised Tracking in Google Analytics

  1. Google Analytics Recurring Revenue and Subscriptions Tracking Guide
  2. How to track the impact of cookie consent on website traffic in Google Analytics
  3. Phone Call Tracking in Google Analytics and Beyond
  4. Scroll Tracking via Scroll Depth Trigger in Google Tag Manager
  5. Video Tracking via YouTube Video Trigger In Google Tag Manager
  6. Calculated Metrics in Google Analytics – Complete Guide
  7. The one thing that you don’t know about PayPal.com and the referral exclusion list
  8. Introduction to Postbacks in Google Analytics
  9. Creating Content Group in Google Analytics via tracking code using gtag.js
  10. Tracking Site Search without Query Parameter in Google Tag Manager
  11. Setting Up Site Search Tracking for POST based search engines in Google Analytics
  12. Tracking Site Search for GET-Based Search Engines in Google Analytics
  13. Understanding site search tracking in Google Analytics
  14. Tracking Virtual Pageviews in Google Tag Manager – Complete Guide
  15. Creating and using Site Search Funnel in Google Analytics
  16. Learn to Setup Facebook Pixel Tracking via Google Tag Manager
  17. How to use Keyword Hero to reveal Not Provided keywords in Google Analytics
  18. Guide to Event Tracking via Google Tag Manager
  19. Learn to track Qualified and Won leads in Google Analytics
  20. Creating your own Google Analytics Tag Auditing System
  21. Using multiple Google Analytics tracking codes on web pages
  22. Guide to Offline Conversion Tracking in Google Analytics
  23. Google Analytics and YouTube Integration Guide
  24. Complete Guide to Google Analytics for Facebook
  25. Tracking true referrals in Google Analytics when using PayPal and other payment gateways
  26. Virtual pageviews in Google Analytics – Complete Guide
  27. YouTube Video tracking via Google Tag Manager
  28. Implementing E-Commerce Tracking via Google Tag Manager
  29. Event Tracking in Google Analytics – Complete Guide
  30. E-Commerce Tracking in Google Analytics – Complete Guide
  31. Google Analytics Cross Domain Tracking Explained Like Never Before
  32. Google Analytics Social Tracking – Twitter, Facebook, Google Plus and LinkedIn
  33. Setting up & Tracking AMP Pages in Google Analytics
  34. Setting up Sales Funnel across websites in Google Analytics
  35. Using Data Visualization to analyze the SEO Performance
  36. Tracking offline conversions in Google Adwords
  37. How to Correctly Measure Conversion Date & Time in Google Analytics
  38. Tracking Twitter and Linkedin Social Interactions in Google Analytics
  39. Implementing Scroll Tracking via Google Tag Manager
  40. Phone Call Tracking and ROI calculations – Champion’s Guide
  41. Google Analytics Cross Domain Tracking (ga.js)
  42. Open Graph Protocol for Facebook Explained with Examples

Learn about the Google Analytics Usage Trends Tool

The Google Analytics usage trend is a new tool which is used to visualise trends in your Google Analytics data and to perform trend analysis.


Do you want to Learn Web Analytics in 8 Weeks?

  • Learn and Master Web Analytics, Conversion Optimization & Google Analytics from Industry Expert in 8 weeks.
  • Lifetime access to the course + Lifelong FREE course updates.
  • New study material added every few months (lifelong learning).
  • Up to date training material.
  • Most exhaustive course on Google Analytics on the internet.
  • Hundreds of Assessments to test your learning.
  • Your 24/7, 365 days a year reference source.
  • Learn at your own pace and from any place.

Take your Analytics knowledge to the next level. Checkout my Best Selling Books on Amazon

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 Beyond
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.

Himanshu Sharma

Certified web analyst and founder of OptimizeSmart.com

My name is Himanshu Sharma and I help businesses find and fix their Google Analytics and conversion issues. If you have any questions or comments please contact me.

  • Over eleven years' experience in SEO, PPC and web analytics
  • Google Analytics certified
  • Google AdWords certified
  • Nominated for Digital Analytics Association Award for Excellence
  • Bachelors degree in Internet Science
  • Founder of OptimizeSmart.com and EventEducation.com

I am also the author of three books:

error: Alert: Content is protected !!