Restrict analytics by IP address


Is there a way to filter analytics based on IP address. We have multiple branch locations and our internal sales teams use our website search to find literature etc. We may want to separate out that traffic from regular site traffic to get a more accurate look at what people outside the company are searching for.


Hello @jhamilton,

It is possible to flag requests that should not be tracked in the analytics, this is done at search query time.
You can read more about it in the documentation here:

What library are you using to do search queries to your Algolia index?

Cheers, Maxime.

Hey @iam4x, thanks for the reply. We are using laravel and vue-Instant-Search to build the front end.

Hello @jhamilton

I think it might be possible with vue-instantsearch <ais-index> widget. You can pass :query-parameter and set analytics: false to it for the users you don’t want to track into analytics.

You can read more about this widget in the documentation:

I’m summoning @rayrutjes who might have a better idea :slight_smile:

Cheers, Maxime.

Hi Team

I want to add restriction to the api key. So that the api key can be called from live production environment only. Please let us know how can we do this.
Sometimes the api gets called from staging environment and creates issue in search results.