Jump to content

track email open with php


vinpkl

Recommended Posts

Hi

 

I have read on internet that the companies track email as "open" by inserting an transparent image.

 

But i am not able to found what actually they insert into the source code of that image that marks or updates in the database as "open".

 

Do they insert an update query into the source code of image ??

 

Can please tell me a example with img src ??

 

Thanks
Vineet

 

Link to comment
Share on other sites

Hi fastsol

 

If instead of an fake transparent image, if i want to have an original image say my logo image

<img src="logo.jpg?track.php?id=123" >

Will it be fine to have two "?" signs in the url or img src.

 

vineet

Edited by vinpkl
Link to comment
Share on other sites

You can't track text emails, and you will only be able to track the people using HTML email IF they have "display images" enabled in their email client, which is turned OFF in a lot of email clients by default.

 

The way that tracking works is when the email client (basically a simple HTML browser) requests the image from YOUR server in order to display it, it creates an entry in the server log just like it does for ALL requests (html/js/css/etc) to the server. So at that point you KNOW the person opened the email or it wouldn't have made the image request. You obviously can't send an image in text email. So it's not perfect and won't be able to track everybody, only people who view the email as HTML AND have view images enabled.

Link to comment
Share on other sites

Also this won't work in an HTML email:

<img src="track.php?id=123&image=logo.jpg" >

You need the FULL url to the image,

http://yoursite.com/track.php?id=123&image=logo.jpg
Edited by CroNiX
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.