检测服务器上的图像负载 [英] Detecting image load on server

查看:73
本文介绍了检测服务器上的图像负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道mailchimp之类的服务如何检测到电子邮件打开

I am wondering how services like mailchimp detect email opens

我读这是因为它们添加了1x1像素图像

I read it's because they add a 1x1 pixel image

有人可以告诉我这是如何在服务器上完成的吗?我正在使用AWS :)

Can someone tell me how this is done on my server ? I am using AWS :)

我还想知道这些服务如何检测设备和浏览器/电子邮件客户端之类的东西

I would also like to know how these services detect things like device and browser/email client

推荐答案


我读这是因为它们添加了1x1像素的图像

I read it's because they add a 1x1 pixel image

True


有人可以告诉我这是如何在服务器上完成的吗?我正在使用AWS:)

Can someone tell me how this is done on my server ? I am using AWS :)

通常的方法是将图像源属性设置为包含查询的Web服务器上的URL您可以追溯到特定用户的字符串参数,例如该用户的电子邮件地址的哈希值或他们在系统中的ID,例如在您发送的电子邮件中,您添加了这样的标签

The usual approach is to set the image source attribute to a URL on your web server that includes a query string parameter that you can track back to a particular user, for example a hash of the user's email address or their ID in your system, e.g. in the email you send you add a tag like this

<img src="http://example.com/track?id=42 width="1" height="1" />

这会强制发送电子邮件客户端加载URL http://example.com/track ,该URL将返回1x1透明图像并记录

That forces the email client to load the URL http://example.com/track, which would return a 1x1 transparent image and also log that the ID 42 requested that image.

请注意,某些电子邮件客户端会阻止某些域中的图像。如果用户在您的联系人列表中包含您,则该图像的机率非常好某些ISP将在确定是否实际请求和显示像素数据时考虑您的发送信誉,电子邮件安全标准(例如SPF / DMARC)的实现以及其他因素。

Note that some email clients block images from some domains. If the user has you in their contacts list, chances are pretty good the image will be shown. Some ISPs will consider your sending reputation, your implementation of email security standards (e.g. SPF/DMARC) and other factors in deciding whether to actually request and display the pixel data.

这篇关于检测服务器上的图像负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆