如何使用Google分析来跟踪开放费率,点击电子邮件中的费率? [英] How to use Google analytics to track open rates, click rates in a email?
问题描述
我已阅读文件,并且有航迹代码应该能够帮助我。
但是,如何才能真正使用它来获取开放费率,网址点击率?
I have read the document and there is a track code should be able to help me. However, how can i actually use it to get the open rates, url click rates?
费率:
我使用swiftmailer发送邮件,这是一种添加跟踪代码的方法(如何?由于邮件是纯html,不允许使用javascript或php)我应该在HTML /文本邮件模板?
For the open rates: I am using swiftmailer to send the mail, is it a way to add the track code (How? Since mail is plain html , no javascript or php is allowed) What i should do in the html/text mail template?
URL点击率:
是否与邮件分开?这意味着我只需要在我添加到邮件中的页面中添加链接。但是,有没有办法更自动地做到这一点?例如,当邮件发送时,我找到了url并为每个链接逐个添加跟踪代码?(但是,如何使用php创建不同的跟踪代码?)
For the url click rates: Is it separate from the mailing? that means i just have to add the link in the page i append in the mail. However, are there ways to do it more automatically? For instance, when the mail is sent, i find the url and add the track code for each link one by one?(But how can i create different track code using php?)
这有很多问题,对不起。我缺乏经验,因为需要一些时间来回答这个问题,所以答案的任何部分都会得到高度赞赏,我会投票赞成。再次感谢您
That 's lot of question, sorry.I am inexperience in it, Since it takes sometime to answer the question ,any part of the answer is highly appreciated and i will vote up it. Thank you again
推荐答案
您的问题的第二部分:
如果您使用php创建电子邮件,您可以轻松地将自定义代码添加到url GET请求中,如下所示:
www.yoururl.com/...?yourvar=345
然后您将get变量传递给js(+ validation)。
然后在页面上,您可以添加自定义的事件发送到分析:
The second part of your question:
If you are creating the email with php, you can easily add customized code to the url GET request, like this:
www.yoururl.com/...?yourvar=345
Then you pass the get variable to js (+validation).
Then on the page itself you can add customized event sending to analytics:
_gaq.push(['_trackEvent', 'name', value]);
这篇关于如何使用Google分析来跟踪开放费率,点击电子邮件中的费率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!