vinpkl Posted May 22, 2015 Share Posted May 22, 2015 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 ?? ThanksVineet Quote Link to comment Share on other sites More sharing options...
fastsol Posted May 22, 2015 Share Posted May 22, 2015 In the img src tag you put a file name of a script on your server that serves the image and runs a query when it's called by the img src in the email. Quote Link to comment Share on other sites More sharing options...
vinpkl Posted May 22, 2015 Author Share Posted May 22, 2015 (edited) 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 May 22, 2015 by vinpkl Quote Link to comment Share on other sites More sharing options...
fastsol Posted May 22, 2015 Share Posted May 22, 2015 No, that's not a valid url string. You would do this and return that image from the script. <img src="track.php?id=123&image=logo.jpg" > Quote Link to comment Share on other sites More sharing options...
vinpkl Posted May 22, 2015 Author Share Posted May 22, 2015 Hi fastsol What is the solution for the tracking text emails, in which images are not displayed or email type is not html thanks vineet Quote Link to comment Share on other sites More sharing options...
CroNiX Posted May 22, 2015 Share Posted May 22, 2015 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. Quote Link to comment Share on other sites More sharing options...
CroNiX Posted May 22, 2015 Share Posted May 22, 2015 (edited) 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 May 22, 2015 by CroNiX Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.