Hello all,
I have a php script that hit the collect URL like this
When I hit the php script through my phone, nothing happens, but if I hit the URL within the file_get_contents directly, I can see a hit in Real-Time Reporting right away.
Even more weird, the exact same PHP code works for the other 4 tracking IDs we have, just not this one: UA-21277314-1
I've also tried to use curl with user-agent instead of file_get_contents
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_USERAGENT => 'Autofusion Call Tracking cURL Request'
));
$resp = curl_exec($curl);
echo 'Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl);
curl_close($curl);
There is no error and code return 0. Still, no good.
I cannot see how the same code could work for one, but not another. Is there something with the account itself that could have caused this? Thanks for any input.