PHP 中的电子邮件跟踪技术

发布于 2024-08-26 20:11:01 字数 151 浏览 9 评论 0原文

我正在用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

童话 2024-09-02 20:11:01

跟踪图像不得与电子邮件一起发送,因为您要跟踪打开您的新闻通讯的人所计算的是从您的服务器下载/请求图像的次数。

这意味着您的跟踪有一个如下所示的 URL:

http://www.yoursite.com/tracking.php?id_newsletter=X&user_id=Y

但请注意,这仅适用于选择在查看新闻通讯时启用图像显示的用户,并且越来越多的电子邮件客户端通过以下方式禁用图像:默认。

其他跟踪解决方案?

您可以跟踪链接的点击次数,而不是跟踪浏览次数。

例如,在您的时事通讯中,不是直接链接,而是如下所示:

http://www.yoursite.com/destination-page.php

链接将指向计数器/跟踪页面:

http://www.yoursite.com/track-clicks.php?newsletter_id=X&user_id=Y&destination_page_id=Z

并且 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 :

http://www.yoursite.com/tracking.php?id_newsletter=X&user_id=Y

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 :

http://www.yoursite.com/destination-page.php

The link would point to a counter / tracking page :

http://www.yoursite.com/track-clicks.php?newsletter_id=X&user_id=Y&destination_page_id=Z

And that track-clicks.php page would :

  • insert some data to the database (or somewhere else), to keep track of the click
  • select from the database (or elsewhere) the URL of the page that corresponds to destination_page_id=Z
  • redirect the user to that page.

Tracking clicks, instead of views, has several advantages :

  • Even if the number is smaller, you are not tracking users who registered a long time ago and are not interested anymore : you are only keeping track of users who are interested enough to read your newsletter and clicks on links
  • This should works much better : even if external images are disabled, users will have to click on your tracking links to access the page that interests them
情定在深秋 2024-09-02 20:11:01

您只能通过使用远程加载的图像来可靠地跟踪打开的电子邮件 - 即。从您的服务器。 (即使如此,邮件客户端也可能默认阻止远程图像)

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文