Expand my Community achievements bar.

SOLVED

How to disable web analytics from tracking the data

Avatar

Level 1

We use web analytics for tracking the pages in our organization mobile app. But as we are going to introduce a mechanism to disable tracking based on the user preference, would like to know how to disable it ?

1 Accepted Solution

Avatar

Correct answer by
Level 2

@log4john use custom code based on user selection and set s.abort to disregard analytics call. Analytics call will not trigger. 

View solution in original post

3 Replies

Avatar

Level 1

Thanks Neelabh for the answer. 

 

We are not aware of the tool, but we need to switch off tracking web analytics programmatically. Basically we want to ask the user on whether he would like to be tracked or not, based on on his input we will either track the user or disable tracking. Do you have any idea  ? 

Avatar

Correct answer by
Level 2

@log4john use custom code based on user selection and set s.abort to disregard analytics call. Analytics call will not trigger.