Gravatar for carlos.cenjor@ti.eptisa.com

Question by carlos.cenjor, Jan 9, 2018 12:30 PM

Custom IP on Analytics

Hi,

Our customer is developing a backend app using Coveo Cloud Analytics for Coveo Cloud v2 with the Stats Write Analytics API:

https://platform.cloud.coveo.com/docs?api=UsageAnalyticsWrite#

Coveo API takes automatically the IP from the Backend and is always the same. This is ok when you use a frontend write request, but not when using a backend proxified request.

They need to provide the user IP to track users as a parameter, a header or something like.

Is there any way to do it?


Regards!

1 Reply
Gravatar for lbourdages@coveo.com

Answer by lbourdages, Jan 9, 2018 1:34 PM

Hi!


You can provide the X-Forwarded-For header with the IP of the client. We use this to find out the source IP address.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For

For this to work, all proxies in the path of the request must be configured to support the header.

Gravatar for carlos.cenjor@ti.eptisa.com

Comment by carlos.cenjor, Jan 9, 2018 2:48 PM

oh, thank you didn't know that header existed. I'll check and let you know if worked :)

Ask a question