AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Set IP in the payload. #268

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
---------------------------------------------------------------------------
NOTE: This issue tracking system is for Google Analytics developer products
only.
If you are not a developer/programmer visit:
http://www.google.com/analytics/support.html
---------------------------------------------------------------------------
Name of related component: Measurement Protocol

Request summary:
Currently Measurement protocol implicitly resolves the IP from the request. It 
would be nice if the payload also allowed the IP to be set, so that we could 
forward it from the end client  via our server to the Analytics endpoint 
properly.

Use Cases:
We are using Measurement Protocol to use Google Analytics on our web sites that 
are accessed on old Mobile devices that don't support Javascript, and we are 
doing this in multiple countries.
We have already requested for beta access and have been granted as well.
Obviously, we are building a wrapper around Measurement Protocol. The clients 
will load a 1x1 gif, which then makes appropriate request to our wrapper code, 
which then makes HTTP POST request to the Analytics endpoint. The 1x1 gif layer 
is used so that we don't get tons of requests from crawlers.
The one thing we are missing is being able to forward the end-client's IP to 
the Analytics endpoint via our wrapper.
This is because Measurement protocol implicitly resolves the IP from the 
request, which is always going to be our server.
It would be nice if the payload also allowed the IP to be set, so that we could 
forward it from the client to the Analytics endpoint properly.

Original issue reported on code.google.com by suv...@gmail.com on 27 Feb 2013 at 10:59

GoogleCodeExporter commented 9 years ago
We need this for the exact same reason. Ability to report on mobile devices 
from our server. The ability to set the IP on both pageviews and events would 
be great !

Cheers.
Phillip

Original comment by phillip....@thumbtribe.mobi on 19 Mar 2013 at 9:48

GoogleCodeExporter commented 9 years ago
same issue.
i tried changing the HTTP Headers (X_FORWARD_FOR) but it seems to be ignored by 
the Analytics endpoint.
i got no work around.

Original comment by lu...@asteriski.com on 20 Jun 2013 at 7:00

GoogleCodeExporter commented 9 years ago
having the IP on the payload would be nice. the old analytics (ga.js) has this,
we are migrating to the new measurement protocol and this seems to be a very 
big problem for us

Original comment by Lyndon.B...@miiingle.com on 20 Jun 2013 at 7:17

GoogleCodeExporter commented 9 years ago
Me too. All my ecommerce transactions generated by GA Measurement Protocol are 
saved as the IP of my application, giving bad results in Analytics

Original comment by cordobat...@gmail.com on 25 Sep 2013 at 3:54

GoogleCodeExporter commented 9 years ago
Identical request, slightly different scenario:  I would like analytics of a 
web service.  No javascript is involved, so the Measurement Protocol is a great 
way for my web service to register an event with GA.  But of course I would 
like the IP to be the client's IP, not my server's.

Original comment by nhek...@gmail.com on 25 Sep 2013 at 8:36

GoogleCodeExporter commented 9 years ago
Issue 292 has been merged into this issue.

Original comment by pfrise...@google.com on 28 Oct 2013 at 8:43

GoogleCodeExporter commented 9 years ago
An alternative to sending the IP address would be to add the ability to send 
our own GEO data for the hit.   For example, country=US, city=LA.   My company 
attributes ROI marketing data about phone calls, and we post that data into GA 
and we have very rich geo location data that isn't based off an IP address.  
Currently we don't put the Geo data into GA.

Original comment by esn...@gmail.com on 12 Dec 2013 at 7:20

GoogleCodeExporter commented 9 years ago
up.

Original comment by mbuto...@gmail.com on 13 Dec 2013 at 12:43

GoogleCodeExporter commented 9 years ago
Same issue here. We are tracking pdf,msi and exe downloads directly from PHP 
and they are being shown as they come from the server's ip address

Original comment by Carlos...@gmail.com on 13 Dec 2013 at 11:40

GoogleCodeExporter commented 9 years ago
Still nothing changed. We have our Call Tracking solution but all phone calls 
are apearing in Analytics as from the country our server located in.

Original comment by luna...@gmail.com on 14 Feb 2014 at 11:26

GoogleCodeExporter commented 9 years ago
FYI: This is now implemented via the "uip" parameter, see announcement from 
Google: 
https://groups.google.com/d/msg/google-analytics-measurement-protocol/8TAp7_I1uT
k/CIJtk3W3L-UJ

Original comment by m...@thomasbachem.com on 9 Mar 2014 at 1:21

GoogleCodeExporter commented 9 years ago
https://developers.google.com/analytics/devguides/collection/protocol/v1/paramet
ers#uip

along with user agent
https://developers.google.com/analytics/devguides/collection/protocol/v1/paramet
ers#ua

Original comment by pfrise...@google.com on 13 Apr 2014 at 8:06