Posted 01 Sep 2011
Link to this post
I was just about to write you that yes, it was surely possible, when I realized that the feature I was thinking of is not part of our official release yet. So unfortunately no, at present it's not possible to easily do what you're after.
The feature I'm thinking of will allow you to pass in an IP-address as a hint to creating the Monitor-instance, of which you would have one per session (you might already do it this way), which would tell it to use *that* IP-address instead of the pc/server's own address. You could then pass along the IP belonging to the user's session and the data sent to Analytics from that particular Monitor-instance would appear to come from the user's IP. Elegant and easy.
But, alas, it's not part of the officially released API yet. It hopefully will be soon, but I can't give you a timeframe. We have, however, recently added a very similar feature: in the settings optionally used when creating the Monitor-object, you can pass along a "Location" (latitude, longitude) which Analytics will then use as the location rather than do IP-lookup. So if you have a way of translating IP-addresses to coordinates (like we do internally on the server) then you're all set. You probably don't, which is why it's "possible, but not easy" as I started out by saying. It's a pity that the IP-option didn't make it into that same release, but that's just the way it goes sometimes.
I'm sorry that your scenario isn't really supported yet, but hopefully it will be within the near future. We're definitely aware of the potential of this feature and are aiming to include it.