Analytics
1.8K members online now
1.8K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Email Tracking / Event: Open

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hey there.

 

Firts: happy new year to everyone.

 

My actual issue:

 

I want to track an event / an email newsletter.
I just want to know if the mail was opened. I found a lot Information but have a few questions.

 

I have to insert the Tracking-Code with an img-tag:

 

<img src=„http://www.google-analytics.com/collect?
v=1&
tid=UA-XXXXXXXX-X&
cid=CLIENT_ID_NUMBER&    dynamic? -> required! - where did I get it?
t=event&
ec=email&
ea=open&
el=recipient_id&            dynamic? -> required? - where can I get it?
cs=newsletter&
cm=email&
cn=maerkte“>   

 

My question:

How did I get the marked parameter?

They have to by build in a dynamic way?

 

The Newsletter, where the link will placed, are generated automaticly. How can I insert the dynamic parameters?

 

Sources:

https://developers.google.com/analytics/devguides/collection/protocol/v1/email
https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Moritz C
January 2016

Re: Email Tracking / Event: Open

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭
Marked as Best Answer.
Solution
Accepted by topic author Moritz C
January 2016

Re: Email Tracking / Event: Open

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭
Hi,

hit builder: https://ga-dev-tools.appspot.com/hit-builder/

get the clientId value stored on the tracker : https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id?hl=en#getti...

event label is not mandator: https://developers.google.com/analytics/devguides/collection/analyticsjs/events

Best Regards,
GA Guru.

'Star' or 'Accept as Solution' if it helped.

Re: Email Tracking / Event: Open

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

So, the ClientID is a dynamic parameter and should be different by every user who subscribed on a newsletter?
Or can I create it once and used it for every mail/newsletter?

When I have to "Get the Client ID from the cookie", how did I get the ID in my newslettersystem?

 

Where did I have to use that script?

Can I use the GTM for that? In which way?

ga(function(tracker) {
 
var clientId = tracker.get('clientId');
});

 

Re: Email Tracking / Event: Open

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭
client ID field, a unique, randomly generated string that gets stored in the browsers cookies, so subsequent visits to the same site can be associated with the same user.

Email Tracking / Event: Open

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

hi,

I am wondering how to get the cid=CLIENT_ID_NUMBER and el=recipient_id.

I added an image into my emails and sending it via outlook by inserting page and I want to track the email opens. i found on internet while searching this to track the email opens:  <img src="

http://www.google-analytics.com/collect?v=1&tid=UA-12345678-1&cid=CLIENT_ID_NUMBER&t=event&ec=email&..." width=1 height=1>

 

Please suggest how to get these.

 

Email Tracking / Event: Open

[ Edited ]
Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

<img src=”http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXX-YY&cid=*|UNIQID|*&t=event&ec=email&ea=ope...*|UNIQID|* />

 

 

v = 1 Protocol Version (required)

tid = UA-XXXXXX-YY Tracking ID / Web Property ID (required)

cid = *|UNIQID|* Client ID (required). This anonymously identifies a particular user, device, or browser. The value – *|UNIQID|* – is a dynamic parameter

t = event  Hit type (required). We’re tracking this with event tracking, hence the event hit type.

ec = email Event Category

ea = open Event Action

el = *|UNIQID|* Event Label

cs = newsletter Campaign Source

cm = email Campaign Medium

cn = 062413 Campaign Name

cm1 = 1 Custom Metric 1

 

 

where cid ,el and cd1 is unique id for newsletter it can be newsletter id for identification

Example:

add this link 'http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXX-YY&cid=8&t=event&ec=email&ea=open&el=8&cs=newsletter&cm=email&cn=Clothestobuy&cm1=1&cd1=8970' in image src 

 

UA-XXXXXXX-YY replace this with your GA account id

 

When email is open

Google anayltics track this event as open.

You can see that in Google analytics account  ACQUISITION (Tab) ->Campaigns ->  All Campaigns

 

Clothestobuy campaign will be appear after some time.

 

 

 

 

 

 

 

Email Tracking / Event: Open

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

So I have put the code into my email html and sent to myself to test. I have not opened it. I go to my google analytics and for some reason it says that I have a current user, as if i had opened the email. It appears the google email system reads my email when i send it. It is really irritating, I have been trying to find a solution for 7 hours already.. HELP!!!