PHP 中的电子邮件跟踪技术
我正在用 php 做一个新闻通讯管理。我需要跟踪打开我们新闻通讯的访问者,我已在新闻通讯中插入了跟踪图像,但这似乎不起作用。
使用 Shift 邮件程序,可以选择将内嵌图像嵌入到时事通讯中。是否可以使用此内联图像进行跟踪?
还有其他技术可以跟踪电子邮件吗?
I am doing a newsletter Management in php. I need to track the visitors who opens our newsletter, I have inserted the tracking image in newsletter thats seems to work little.
Using Shift mailer there is option to embed an inline image to newsletter. Is it possible to track using this inline image?
Is there any other techniques for tracking email.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
跟踪图像不得与电子邮件一起发送,因为您要跟踪打开您的新闻通讯的人所计算的是从您的服务器下载/请求图像的次数。
这意味着您的跟踪有一个如下所示的 URL:
但请注意,这仅适用于选择在查看新闻通讯时启用图像显示的用户,并且越来越多的电子邮件客户端通过以下方式禁用图像:默认。
其他跟踪解决方案?
您可以跟踪链接的点击次数,而不是跟踪浏览次数。
例如,在您的时事通讯中,不是直接链接,而是如下所示:
链接将指向计数器/跟踪页面:
并且
track-clicks.php
页面将:destination_page_id对应的页面的URL =Z
跟踪点击次数而不是浏览次数有几个优点:
The tracking image must not be sent as inline with the email, as what you are counting, to keep track of people who opened your newsletter, is the number of times that image was downloaded / requested from your server.
This means your tracking has a URL that looks like this :
Note, though, that this will only work for users who choose to enable the display of images while looking at your newsletter -- and more and more e-mail clients disable images, by default.
Other tracking solutions ?
Instead of tracking number of views, you could track number of clicks on links.
For example, instead of having a direct link, in your newsletter, that would look like this :
The link would point to a counter / tracking page :
And that
track-clicks.php
page would :destination_page_id=Z
Tracking clicks, instead of views, has several advantages :
您只能通过使用远程加载的图像来可靠地跟踪打开的电子邮件 - 即。从您的服务器。 (即使如此,邮件客户端也可能默认阻止远程图像)
You can only reliably track opened emails by using an image loaded remotely – ie. from your server. (Even then, mail clients probably block remote images by default)