Email Tracking - GMail

后端 未结 2 409
隐瞒了意图╮
隐瞒了意图╮ 2020-12-08 03:24

I am creating my own email tracking system for email marketing tracking. I have been able to determine each persons email client they are using by using the http referrer bu

相关标签:
2条回答
  • 2020-12-08 03:32

    Make the link something like http://www.example.com/image.jpg?h=8dh38dj

    image.jpg is a PHP file and 8dh38dj is the hash of the email you included the link in. When the user requests the file, your PHP script will get '8dh38dj', look that up in your database and find the matching email. Parse the domain i.e. gmail.com from example@gmail.com and you know it is from gmail. To make jpg files execute as PHP, use an AddHandler in php

    0 讨论(0)
  • 2020-12-08 03:44

    Are your images requested with HTTP or HTTPS?

    If so, that's the problem.

    HTTPS->HTTP referrals do not leak a Referer Header (HTTP_REFERER).

    If you embed a HTTP hosted image in an email that is requested from an HTTPS page, it won't send a referrer. (HTTP pages requesting HTTPS, however, do send a referer).The solution is to embed the image as HTTPS. I've tested it, and sure enough, secure HTTPS images do indeed send the Referrer.

    One way Gmail could block the referrer information on loaded images by default is if they used a referrer policy, which is supported on most modern browsers. (As of 2011, they did not implement such a policy.)

    See the below screenshot of an embedded image that is generated dynamically with the HTTP REFERER of the request: enter image description here

    0 讨论(0)
提交回复
热议问题