Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

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
0
nandananushil1
Asked:
nandananushil1
  • 6
  • 3
  • 3
  • +3
1 Solution
 
oheilCommented:
You can do this by sending emails in HTML format. You could embed some unvisible graphics which must be downloaded from a server where you can analyse the download log files.
Tracking like this is typically regarded as bad behaviour, or just in my opinion.

Oli
0
 
PapertripCommented:
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.
0
 
boon86Commented:
You want to include some javascript on email content so you can track their hits.
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);

Open in new window


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;

Open in new window


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>

Open in new window


hope that help
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
PapertripCommented:
@boon86 -- will that circumvent clients that don't download images or other potentially malicious content?
0
 
Loganathan NatarajanLAMP DeveloperCommented:
Using PHP , check out this
0
 
Neil RussellTechnical Development LeadCommented:
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.
0
 
PapertripCommented:
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.
0
 
oheilCommented:
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
0
 
PapertripCommented:
Are my replies to this question not being seen or something?
0
 
oheilCommented:
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.


0
 
PapertripCommented:
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.

0
 
Neil RussellTechnical Development LeadCommented:
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
0
 
PapertripCommented:
@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.

0
 
Neil RussellTechnical Development LeadCommented:
No problems at all papertrip and welcome to EE :)
0
 
Ray PaseurCommented:
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.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 3
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now