Track Email Opens in Google Analytics 4 | BCS Track Email Opens in Google Analytics 4 | BCSBCS

Track Email Opens in Google Analytics 4

Google Analytics BCS 7 months ago (06-04) 1489 Views 4 Comments

In GA3, we use the Measurement Protocol to track email openings.

In GA4, the Measurement Protocol API has become complicated and needs to be converted before it can be sent to GA4, this is a bit difficult for most people.

In fact, in GA4, we can still use the method of GA3 to track the opening of emails.

Use “v=2” to filter in the browser developer tools and find the request starting with “collect”, this is the data sent to GA4.

Track Email Opens in Google Analytics 4

 

This request seems very long, but in fact many fields can be omitted. We mainly focus on three fields:

  • cid: This is the Client ID and needs to be replaced with the user’s actual Client ID.
  • en: event name, this is the event name, change it to aaa here
  • ep: event parameter, this is the event parameter, no modification is required here.

The modified request is inserted into the email in the form of img, and some hidden styles are added:

Track Email Opens in Google Analytics 4

 

The final effect is that the img cannot be seen in the email:

Track Email Opens in Google Analytics 4

 

Send the email, and when a user opens it, you can see the event aaa in the real-time report of GA4:

Track Email Opens in Google Analytics 4


If you don't understand, You can leave a comment below.
Like (8)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website
(4) friends in the comments
  1. How to generate CID dynamically?
    Alina2024-08-20 16:18 Reply Windows 10 | Chrome 127.0.0.0
    • It is necessary to obtain the actual cid (in cookie _ga)of the user, otherwise the number of users will increase.
      BCS2024-08-21 10:42 Reply Mac OS X | Chrome 127.0.0.0
      • how can i obtain the actual cid of the user?
        X2024-08-22 16:44 Reply Windows 10 | Chrome 127.0.0.0
        • In cookie _ga
          BCS2024-08-24 14:56 Reply Mac OS X | Chrome 127.0.0.0