Issue summary:
1. I have two type of badges HTML and Script badges .I need to Track all
traffic of that site in which our badges are used.I have create GA account for
that.I have sent data through curl in php.If anyone open the(site in which our
badges used) then it is showing in real time of GA account.But not show in Main
GA account
Actual results:-
Traffic show in real time tab.
Expected output:-
Real time data will be in traffic scources also.but it will not going there.
I have used that code for that :
$url = isset($_SERVER['HTTP_REFERER']) ?
trim(str_replace('http://','',$_SERVER['HTTP_REFERER'])) : '';
$referpage= urlencode($url);
$fields= 'v=1&tid='.$ga_id.'&cid='.$_SERVER['REMOTE_ADDR'].'&t=pageview&dp='.$referpage.'';
$ch = curl_init();
$url="http://www.google-analytics.com/collect";
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
Please help me
Thanks
Rajesh Kumar
Original issue reported on code.google.com by scrib...@gmail.com on 3 Apr 2013 at 11:29
Original issue reported on code.google.com by
scrib...@gmail.com
on 3 Apr 2013 at 11:29