algolia / algoliasearch-client-javascript

⚡️ A fully-featured and blazing-fast JavaScript API client to interact with Algolia.
https://www.algolia.com/doc/api-client/javascript/getting-started/
MIT License
1.33k stars 222 forks source link

X-Forwarded-For for analytic #1449

Closed davidgacc closed 1 year ago

davidgacc commented 1 year ago

hi people,

Updating total users seems to be upated only the next day in the dashboard. Is it ok?

const products = await index.search<AlgoliaOutputDocument>('', {
  headers: {'X-Forwarded-For': ip.toString() },
  filters: filtersString,
  distinct: false,
  hitsPerPage: 1000,
  numericFilters: numericFilters.length ? numericFilters : undefined,
  attributesToHighlight: [],
  attributesToRetrieve: ['*', '-sku.slug', '-sku.description', '-sku.created_at']
});

Thanks, David

Haroenv commented 1 year ago

Why did you open this issue again, like yesterday (https://github.com/algolia/algoliasearch-client-javascript/issues/1448#issuecomment-1477103371), did you verify there are actually different values of the IP?

davidgacc commented 1 year ago

hi,

yes, they are different and seems updated only the next day. Any suggestions?

Haroenv commented 1 year ago

If any processing is delayed longer than expected (analytics isn't real-time), that wouldn't be an issue for this repository, but to contact support@algolia.com :)