├── log.txt
├── tracking.gif
├── images
└── banner.jpg
├── tracker.php
├── README.md
└── email.html
/log.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tracking.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brampauwelyn/php-email-tracker/HEAD/tracking.gif
--------------------------------------------------------------------------------
/images/banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/brampauwelyn/php-email-tracker/HEAD/images/banner.jpg
--------------------------------------------------------------------------------
/tracker.php:
--------------------------------------------------------------------------------
1 |
15 |
16 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PHP EMAIL TRACKER
2 |
3 | ## Simple pixel based email tracker with PHP.
4 |
5 | ### This script allows you to track opens of HTML emails.
6 |
7 | #### How to:
8 | 1. Set-up a local environment in order to test and run the PHP script.
9 | 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.
10 | 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.
11 | 4. When properly set-up each time a person opens the email, his IP-address should be logged on the log.txt file.
12 |
13 | ```HTML
14 |
15 | ```
16 |
17 | ##### Replace local path by your URL path
18 |
19 | ```HTML
20 |
21 | ```
22 |
23 |
24 |
25 |
26 |
27 | #### Useful Tips:
28 | 1. You can use geo-location services like [http://ip-api.com/docs/](http://ip-api.com/docs/) to return the actual location of the IP-address.
29 | 2. Additionally you could use the [MAPBOX API](https://www.mapbox.com/) to visualize the locations on a map.
30 |
31 |
32 |
--------------------------------------------------------------------------------
/email.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
|
96 | Test email 97 | 98 |
|
192 |