I
I
Ivan Damaskin2017-05-18 17:13:29
Email
Ivan Damaskin, 2017-05-18 17:13:29

How to get information about the user who viewed the letter?

Hello.
With help

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

Made a link like this:
http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXX&t=event&cid=*|UNIQID|*&cn=hellridecase&cs=email&ec=blogemail&ea=open

Tell me how can I get data about the user who opened the letter? You can't get the username from my email. But you can at least country, device, screen resolution, etc.?
Analytics shows only the fact of reading the letter by pixel photo in the letter. But this is not enough. I would also like to make each link individual for each letter. So that the same user would look at the letter a bunch of times, but the statistics did not show this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Khusainov, 2017-05-18
@AdGooroo

First you need to create a tracking pixel.
And add parameters to the link so that the link looks something like this:
where:
tid = Google Analytics tracking id (looks like UA-XXXX)
cid = session id (Unique session id (recipient id))
t = Tracking type (event);
ec = event category;
ea = event action;
el = event label (optional);
cn = campaign name (optional);
cs = campaign source (required if you're tracking a campaign).
Depending on how familiar you are with GA , you may already have an established system for using variables, so the way we suggest is just one of several possible ways.
We assign the tracking ID to the tid variable, and for "t" we write "event" (event) so that GA understands that you are tracking an event, not a page view.
The event category (ec) can be used to group your events. We used the name "blogemail"
The Event Action (ea) you can use to specify the type of event you're tracking, such as interaction, open, email client, animation, and so on.
The event tag (el) is optional. You can use it to indicate the type of interaction (rollover, click) or a detail, such as a block in an email, that the user interacted with. You can also use the event label to pass the type of mail client (webkit, mobile, browser gmail)
You can use the campaign name (cn) and campaign source (cs) to track email campaign reports. Campaign source is required if you want to track by campaign name, and you can use any value. I leave just "email"
Unique session ID (cid) is an identifier assigned to a specific session of a specific user. Normally you could use the user's email, but Google doesn't allow that. According to the documentation, information submitted to GA must not contain personal data.
To meet these requirements, you can contact your email provider and get unique identifiers for each user. At MailChimpthere is a merge tag for this that creates user IDs:
Now that you have a tracking pixel URL, you can use it in your campaigns. Here Tracking Interactions in Interactive Email you can read about the basics of this.
Here are some examples implemented using the code in the article (don't forget to replace the tracking id with )
Open Tracking Let's start with a simple open tracker that will record an event every time someone opens an email (assuming images are displayed)

<img src="http://www.google-analytics.com/collect?v=1&
tid=UA-XXXXXX&t=event&cid=*|UNIQID|*&cn=hellridecase&
cs=email&ec=blogemail&ea=open" width=1 height=1>

Rotating images (rollover)
.img-swap:hover .tpixel{
background-image:url(http://www.google-analytics.com/collect?v=1&
tid=UA-XXXXXX&t=event&cid=*|UNIQID|*&cn=hellridecase&
cs=email&ec=blogemail&ea=interact&el=rollover);
}

Carousel: This won't work in MailChimp because it doesn't support some elements like radio buttons
.radio2:checked ~ .carousel .tpixel{
background-image:url(http://www.google-analytics.com/collect?v=1&
tid=UA-XXXXXX&t=event&cid=*|UNIQID|*&cn=hellridecase&
cs=email&ec=blogemail&ea=interact&el=radio2_select);
}
.radio3:checked + .carousel .tpixel{
background-image:url(http://www.google-analytics.com/collect?v=1&
tid=UA-XXXXXX&t=event&cid=*|UNIQID|*&cn=hellridecase&
cs=email&ec=blogemail&ea=interact&el=radio3_select);

}

Mobile Discoveries
<style>
@media screen and (max-device-width: 600px) {
.mobile-pixel{
background-image: url(http://www.google-analytics.com/collect?
v=1&amp;tid=UA-XXXXXX&amp;t=event&amp;cid=*|UNIQID|*
&amp;cn=hellridecase&amp;cs=email&amp;ec=blogemail
&amp;ea=client-type&amp;el=mobile);
}
}
</style>
<div class="mobile-pixel"></div>

One of the cool features of Google Analytics is the ability to track events in real time. This way you can instantly check if your pixels are set correctly. To test, you can send a test email or open the html file of the email in a browser, and your events will appear in real-time reports. You can access these reports from the left menu: Real-time — Events. Clicking on the "Events in the last 30 minutes" report will give you the opportunity to see the total number of events for each activity in the last half hour.
In the report, you can notice that the delay between the action and the triggering of the event is very small. Also note that because a pixel loaded once does not fire again until you refresh the page, the spinning image event firing a second time will not be recorded.
This is where the fun begins. You can go to the event reports in Google Analytics Behavior - Events - Top Events. There you will see all the events categorized. Click on kinetic and see the action on the event as in the screenshot below:`
You can see All events and Unique events. All events - how many times the pixel has been loaded.
However, unique events are not the number of unique users whose actions triggered the event recording. Unique events show the number of sessions in which the event fired. For example, if the same user opened an email 10 times in three days, then All events will show 10, and Unique events will show 3, but not 1. Google Analytics starts counting the session as a new one if the user has been inactive for half an hour. See this article for more information.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question