php - How to properly implement an email tracking pixel -
i current using php output 1x1 pixel include in e-mails. before output image, run couple of scripts (i.e. increment view count etc...). however, i've noticed clients gmail & outlook download image before serving user and, of course, counts view, because image being viewed. send e-mail , before opening response in server tracking pixel has been viewed , when open e-mail, second response.
my question is, within tracking pixel, how can tell when user has opened e-mail , not when client gmail or outlook downloading image?
what check amount of times gmail, outlook, etc. opens requests pixel without showing user , substract total times pixel viewed. if total times pixel views greater 0, user opened it.
for example: test email sent gmail account tells pixel requested gmail 2 times , haven't opened email yet.
2 total requests - 2 gmail server requests = 0 (email not viewed)
user opens email 1 time... 3 total requests - 2 gmail server requests = 1 (email viewed once)
user opens email 5 times... 7 total requests - 2 gmail server requests = 5 (email viewed 5 times)
hope useful!
Comments
Post a Comment