Forum Moderators: DixonJones
Here is other information:
I currently have an html email that accesses images located at http://www.example.com/images/theimage.gif
So there is no other way to do this without parsing log files?
Thanks for your help!
In the emailgraphic.php template you log the call to a database then server the image.
A better implementation would be to include the recipient's e-mail address and log that- ex: <img src="www.example.com/emailgraphic.php?email=recipient@hisdomain.com"> Then you'll have a log of all the people who actually opened the message. Otherwise, if you sent out 100 e-mails and got 20 hits, you won't know if that means 20% of the recipeints opened the message once, or 10% opened the message twice, or...
Direct them to a page that houses a logging script. You can then log it however you want... database, flat file, whatever. Depending on how you want to track things, you could make the link do basically anything you want.
(I'll use a php example as that's what I'm familiar with)
http://www.example.com/viewimage.php?id=example.gif
Then when the link gets clicked on, the page can track the fact that a user requested example.gif and then serve them the requested image. So long as all your file references are handled correctly, you could change the variable to be whatever image you want people to view... the script should track it when it's served.
Stick with my example- you'll get a log of each time the graphic was downloaded (i.e., each time the message was opened, assuming the recipients have their e-mail clients set for HTML formatting).