xhpdx
Regular Member
- Sep 21, 2008
- 326
- 2,172
I am building a custom tracker for myself and have trouble properly tracking dmrs. Basically instead of counting 1 click it is counted twice(duh it is dmr), so I decided to check if there is a query string in the second meta refresh and if there isn't then count it as a click. To make it easier here is a sample code
and this is my tracking
With a sniffer I see that the browser opens $self?go, but it is still tracked. Has anyone done something similar or have a better idea ?
PHP:
if($_SERVER['HTTP_REFERER'] != "") {
echo "<meta http-equiv=\"refresh\" content=\"0;url=$self?go=1\" />";}
if($_SERVER['HTTP_REFERER'] == "") {
echo "<meta http-equiv=\"refresh\" content=\"0;url=$location\" />";}}
and this is my tracking
PHP:
if(!isset($_GET['go'])){
// track click
}
With a sniffer I see that the browser opens $self?go, but it is still tracked. Has anyone done something similar or have a better idea ?