nandananushil1
asked on
Email Tracking
How can i track emails. I am sending newsletter emails from my system, i want to know who opened them. How can I track that.
I know it can be tracked if they click on display images, but can it be done even if they don't click "display images"
I am using PHP
I know it can be tracked if they click on display images, but can it be done even if they don't click "display images"
I am using PHP
The only way to truly track the opening of emails is via a click-through. You could add a header to request disposition of the mail (like requesting receipts in Outlook), but that is far from a guaranteed method to achieve what you want.
You want to include some javascript on email content so you can track their hits.
you whip up some ajaxy code to do that:
but it doesn’t work because you’re trying to do a cross-site ajax post.
what to do? pass info to a script posing as an image!
usage, simply include these 2 line into your html email content:
hope that help
you whip up some ajaxy code to do that:
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
}
xmlhttp.open("POST","http://example.com/pixel.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
var url=escape(location.href);
var uid=1234;
var referrer=escape(document.referrer);
xmlhttp.send("url="+currenturl+"&referrer="+referrer+"&userid="+uid);
but it doesn’t work because you’re trying to do a cross-site ajax post.
what to do? pass info to a script posing as an image!
var url=escape(location.href);
var referrer=escape(document.referrer);
var pixel = new Image();
pixel.src = 'http://example.com/pixel.php'+ '?' + "url="+currenturl+"&referrer="+referrer+"&userid="+uid;
usage, simply include these 2 line into your html email content:
<script type="text/javascript">var uid=4321;</script>
<script type="text/javascript" src="http://example.com/pixel.js"></script>
hope that help
@boon86 -- will that circumvent clients that don't download images or other potentially malicious content?
Using PHP , check out this
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Simply answer is you can't.
Almost ALL email systems now will block malicious content, even if it gets through their AV/AS filter system. There is NO Gauranteed method to do this.
The ONLY way you could track is to publish the email content online and send each user a LINK to the webpage that they need to visit to read the content, with of course a login so you can record who has visited and read the content.
Oh, you mean what I already posted? :o
BTW it doesn't need a login, just an identifiable token in the URL.
And yes, there is a guaranteed method, a click-through.
Neilsr is right, you cannot track while sending all information inside the mail but with a client who refuses to be tracked (like me).
Oli
Oli
Are my replies to this question not being seen or something?
Sorry Patertrip, I did not see your last one, you are also right.
Currently I have only the basic skin which does not reload comments on the fly. I need to reload to the see the latest comment.
Oli
PS: sorry this is off topic, back to the question.
Currently I have only the basic skin which does not reload comments on the fly. I need to reload to the see the latest comment.
Oli
PS: sorry this is off topic, back to the question.
Understood oheil, thank you for the clarification. I try my best to not attack other Experts, but it drives me crazy when they post the same answer I do (on purpose)!!! Seems to happen at least once a day, and it seems to have already happened once on this thread :-/
Apologies if my reply offended you, I appreciate your response.
Apologies if my reply offended you, I appreciate your response.
I actually find your reply offensive. Nobody has Posted the same answer as you and definately not on purpose.
All you posted was was to say you can do with a click-through.
No explination or comment.
My comment explained to a user of unknown skill level how to go about doing something what he had asked how to do and explain why other methods may not always work.
There is a lot of difference between posting the same content or pasting the same link that somebody has already done, and yes, that is very annoying, and posting an explination of something that may be more meeningful to the questioner.
Kind Regards,
Neil
All you posted was was to say you can do with a click-through.
No explination or comment.
My comment explained to a user of unknown skill level how to go about doing something what he had asked how to do and explain why other methods may not always work.
There is a lot of difference between posting the same content or pasting the same link that somebody has already done, and yes, that is very annoying, and posting an explination of something that may be more meeningful to the questioner.
Kind Regards,
Neil
@Neilsr/oheil,
I shouldn't have posted that reply in this thread. I am new to EE, just over a week, and am now realizing there are different levels to what I perceived as duplicate answering. Some are just plain blatant, and I got shafted on the solution a few times and was left pretty much with wtf. What you said wasn't that, it was what I had said but explained in a different manner. I can see the difference now between the two.
I'll just excuse myself from this thread. Good luck nandananushil1.
I shouldn't have posted that reply in this thread. I am new to EE, just over a week, and am now realizing there are different levels to what I perceived as duplicate answering. Some are just plain blatant, and I got shafted on the solution a few times and was left pretty much with wtf. What you said wasn't that, it was what I had said but explained in a different manner. I can see the difference now between the two.
I'll just excuse myself from this thread. Good luck nandananushil1.
No problems at all papertrip and welcome to EE :)
I am sending newsletter emails from my system, i want to know who opened them. How can I track that.
Here is my advice, based on many years of sending emails from my systems. I send several thousand a month. If there is any economic value to your email messages, Give up, and stop sending your own emails!
Instead, engage the services of this company. They already do everything you need and their services are embarrassingly inexpensive.
http://www.constantcontact.com/index.jsp
There are competitor services, of course, but in my experience Constant Contact is the most professional. There are many layers of experience that underpin my recommendation, most notably the enormous amount of time that I have spent in non-value-added activities that attend to the way the email system works or does not work. For literally pennies, you can get the services of a firm that has many full-time employees dedicated to the task of making sure your email messages look good, reach the intended recipients, get tracked and reported, etc.
Here is my advice, based on many years of sending emails from my systems. I send several thousand a month. If there is any economic value to your email messages, Give up, and stop sending your own emails!
Instead, engage the services of this company. They already do everything you need and their services are embarrassingly inexpensive.
http://www.constantcontact.com/index.jsp
There are competitor services, of course, but in my experience Constant Contact is the most professional. There are many layers of experience that underpin my recommendation, most notably the enormous amount of time that I have spent in non-value-added activities that attend to the way the email system works or does not work. For literally pennies, you can get the services of a firm that has many full-time employees dedicated to the task of making sure your email messages look good, reach the intended recipients, get tracked and reported, etc.
Tracking like this is typically regarded as bad behaviour, or just in my opinion.
Oli