Start a new topic

Geo IP tracking

Hello,

is there a way to use the Geo IP location option while sending events from the server?

We use a hybrid approach and send some events from the server and some from the client. The client events are not a problem, but the server events mess up our data. We do have access to the client IP on the server.


regards,

John



Hello Johannes,


If you are using a server to send in events for the client then you can use the x-forwarded-for header: https://en.wikipedia.org/wiki/X-Forwarded-For


We will then use that value instead of the servers IP for further processing. Another option might be to mark the server side events as non-gameplay. This is typically the best option in a hybrid configuration where events come from both the server and the client. You can do this by omitting the sessionID from the server events, then we will consider the data coming from the client as leading and stitch in the client events where needed. We will then don't do any geoIP resolving on any data coming in from the server.


The latter will probably be the easiest option since you are using a hybrid setup.


If you have any further questions, just let us know.


Kind regards,


Steven van Stiphout

Hi,
thank you for your fast response. Unfortunately omitting the sessionID on the server did not work. Now those events are invalid. Any idea how to make them valid again?

Kind regards,
Johannes

 

Hello Johannes,


There is a slight chance that the events do not have the sessionId set as optional. If you'd like I can set these to optional for you, all I need is the url of your game in our platform. You can also provide this information via a ticket rather than a forum post.


Kind regards,


Steven van Stiphout

Login or Signup to post a comment