php - 试图收集电子邮件分析

标签 php email codeigniter analytics

我用 PHP 编写了一个电子邮件应用程序来处理非常大的邮件列表。有没有办法找出打开了哪些电子邮件以及由谁打开?任何解决方案都可以,只要它能告诉我用户是否确实收到并打开了电子邮件。我也不想使用电子邮件收据,因为它可能会推迟收件人。

如果相关,我正在使用 codeIgniter 框架。

最佳答案

您可以通过在发送的每封电子邮件中包含一个小的跟踪图像来实现这一点。

<img src="http://yourdomain.com/tracking/1x1.gif?cId=12345&uId=56789">

使用 mod-rewrite 将“/tracking/”之外的所有内容推送到您的分析脚本中,捕获 query_string 并将 1x1 gif 返回给电子邮件客户端。


来自 Campaign Monitor:

http://help.campaignmonitor.com/topic.aspx?t=89

When each email is sent out, we automatically add a piece of code that requests a tiny, invisible image from our web servers. So when a reader opens the email, the image is downloaded, and we can record that download as an open for that specific email.

It is important to understand that the open rate is not a 100% accurate measure. Recording an 'open' can only happen if the reader's email client is capable of displaying html with images, and that option is turned on. So if you are sending text-only emails, there is no way to record open rates. Similarly, people reading your html email without images showing will not be recorded as opens (unless they click a link).

Another issue is that your readers may have a preview pane in their email client. That preview pane might be displaying your email automatically (and therefore downloading the images) without the reader ever having to click on it or read it.

So you should never take your open rate as a hard and fast number, because you can never know the true figure. It is much better used as general guide, and as a way of measuring the trends on your email campaigns.

关于php - 试图收集电子邮件分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2740075/

相关文章:

php - X-Cart 4.6 向数据库中的新表提交数据时出错

php - 在集合类型 symfony 中自定义 CSS

php - 变量不存在时隐藏内容

php - 从联系我们表格发送信息到我的电子邮件

php - Codeigniter - 使用 edit_unique 编辑表单(重新填充)

php - 在 API Rest 中从数组内的 2 个表中选择数据

php - IE10默认跨子域共享cookie

具有固定 '@abc.com' 的电子邮件的 JavaScript 正则表达式

parsing - 正则表达式用于在纯文本电子邮件中查找内嵌图像

php - CodeIgniter - 在网页上创建 "block"元素的正确方法