Modify the search function using the 'beforeInstantsearchInit' custom event.
The modified function should include a condition that checks to see if the client IP is the one used by you or your colleagues/staff.
If yes, analytics is set to false.
For example:
const search = instantsearch({
appId: 'XXX',
apiKey: 'XXX',
indexName: 'XXX',
searchFunction: function(helper) {
if (clientMachineIp == customerIp) {
helper.setQueryParameter('analytics', false).search();
} else {
helper.search();
}
},
});