This language is for development only. Switch to English (US) to try our product live.

Will the Analytics still work if I perform the search through my backend?

The aggregation of the queries to retrieve the latest query uses the IP or the user token to work efficiently. If the queries are made from your backend server, the IP will be the same for all of the queries. We're supporting the following HTTP header to forward the IP of your end-user to the engine, you just need to set it for each query:

X-Forwarded-For: IP_OF_THE_END_USER
It's also possible to use the following (custom) header to track users that have the same IP or to track users that use different devices with:
X-Algolia-UserToken: UID_OF_THE_END_USER
Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk