The benefits of adjusting your Google Analytics data with the Measurement Protocol

July 13, 2020

Welcome to another edition of Reader's Corner! At DesignHammer we like to encourage daily reading activities, lifelong learning, and thought leadership. Our Reader's Corner series is meant to serve as a platform through which our staff members can share their perspectives on recently discovered content. If you'd like to stay notified on the external content DesignHammer deems interesting, you can follow our RSS feed to keep up with the latest.

Original Article:

Google Analytics is a powerful analytics platform that is optimized for tracking and reporting on website activity. Occasionally, there are instances where an organization wants to track information via Google Analytics cannot be easily tracked by either the standard Google Analytics tracking code or customized Google Tag Manager implementations (e.g. tracking behavior outside of a user’s browser, thereby not allowing Google Analytics or Google Tag Managers JavaScript to run client-side). In these cases, the Measurement Protocol may be appropriate.

The Measurement Protocol allows you to send arbitrary Google Analytics data to a specific Google Analytics property through Post messages. This provides a great degree of flexibility on how the Measurement Protocol can be implemented with everything from single or batched cURL commands through more complex scripting using a programming language of your choice (e.g. PHP, Python, etc.).

In the article, Danny Mawani Holmgaard outlines several potential use cases for adjusting Google Analytics data using the Measurement Protocol (and includes workflows and examples for each):

  1. Correct missing eCommerce transactions
  2. Adjust duplicate eCommerce purchases, if you are using Google Analytics to report revenue
  3. Send eCommerce refund data to Google Analytics
  4. Update user status from your CRM

The article also notes several important caveats and considerations for implementing the Measurement Protocol:

  • As Measurement Protocol inputs do not have access to Google Analytics user cookie information, it is recommended to either set up a new property for this data or use custom events and filtering to get the data into the correct view
  • Make sure you uncheck bot filtering, as this can block Measurement Protocol hits from being sent to a property
  • Keep data privacy in mind with your Measurement Protocol implementation, both from a data security perspective and a reporting perspective to make sure you remain in compliance for GDPR and any other relevant regulations

Sustainable SEO success is more often about consistent execution than technical tricks.

Correcting Missing ransactiosn How to correct missing transactions in Google Analytics

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

How well is your website performing in search?