Skip to content

nestorochoa/php-email-tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP EMAIL TRACKER

Simple pixel based email tracker with PHP.

This script allows you to track opens of HTML emails.

How to:

  1. Set-up a local environment in order to test and run the PHP script.
  2. Once you've run the script, each time you open the email in your browser your IP address will be logged on the log.txt file.
  3. When you're satisfied with the script, you can host the script on the server. However don't forget to change the local path of the tracking pixel to the actual URL.
  4. When properly set-up each time a person opens the email, his IP-address should be logged on the log.txt file.
<img src="tracker.php?image=tracking.gif" alt="">
Replace local path by your URL path
<img src="http://yourpath/tracker.php?image=tracking.gif" alt="">

Useful Tips:

  1. You can use geo-location services like http://ip-api.com/docs/ to return the actual location of the IP-address.
  2. Additionally you could use the MAPBOX API to visualize the locations on a map.

About

Pixel based email tracker with PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 95.7%
  • PHP 4.3%