├── 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 | 5 | 6 | 7 | 8 | Test Email 9 | 89 | 90 | 91 | 92 |
93 | 94 | 95 | 192 | 193 | 194 | 195 | 196 |
96 |

Test email 97 |

98 | 99 | 100 | 101 | 104 | 105 | 106 | 107 | 110 | 111 | 112 | 113 | 114 | 115 | 118 | 119 | 120 | 121 | 122 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 |
108 | 109 |
123 | 124 | 125 | 126 | 127 | 137 | 138 | 139 | 140 | 141 | 144 | 145 | 146 | 147 | 148 | 151 | 152 | 153 | 154 | 157 | 158 | 159 | 160 | 163 | 164 | 165 | 166 | 169 | 170 | 171 | 172 |
128 | 129 | 130 |

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laboriosam deserunt in iusto, nam labore, ut soluta rem porro corporis praesentium quaerat odit suscipit delectus ullam cum repellat nobis temporibus! Rem provident ducimus fugit enim. Dicta placeat perferendis eius dolore quae aliquid enim voluptas maxime exercitationem eos. Minima aut dignissimos explicabo possimus tempore sit saepe iusto, animi deleniti quia? Aut rem nobis veritatis, natus modi. Excepturi nam veniam quos quo quidem, illo. Sunt quia nulla, temporibus. Libero in quasi eveniet accusamus? Placeat ipsa et id vero neque nostrum at saepe. Tempora molestiae sint nemo esse ipsum nobis odio, nesciunt tenetur exercitationem. 131 |

132 | 133 | 134 | 135 | 136 |
142 | CLICK HERE 143 |
149 |   150 |
155 |   156 |
161 |   162 |
167 |   168 |
173 | 174 |
184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 |
197 | 198 | 199 | 202 | 203 | 204 | 205 | 206 | 207 |
208 | --------------------------------------------------------------------------------