php - Google Analytics Measurement Protocol Event results as Realtime visitor from United States -
currently making custom event trigger php , using measurement protocol.
i had validate event - , "valid": true. see event in real-time reports.
when testing event , when check analytics real-time have visitor not country/city, 1 more united states/new york.
so if on site , chill`n ... see 1 user in real-time correct location (me). when trigger specific event working on - have 1 more real-time visitor united states/new york.
??
i cant explain self..
these request parameters:
$data['v'] = 1; $data['tid'] = 'ua-xxxxxx-x'; $data['cid'] = '5sd5asdshfsd53sdfdd25sd54fgdsfg49dd854'; $data['uid'] = '100'; $data['t'] = 'event'; $data['ec'] = 'registration'; $data['ea'] = 'form'; $data['el'] = 'user data'; $data['ev'] = 1; $data['dh'] = 'mydomain.com'; $data['ds'] = 'web';
someone got problem and/or solution?
thank you!
the measurement protocol gets location information ip address of computer making request. if server hosted in us, that's hit show coming from.
you can avoid behavior, though, overriding ip address using uip
parameter , setting ip address of actual requestor (not server sending request). if don't know ip address of requestor, know his/her geographical location, can use geoid
parameter instead.
note, same problem occurs ua string in request header. if single server sending requests, google analytics report them coming same device. can override user agent using ua
parameter.
Comments
Post a Comment