Expand my Community achievements bar.

Interested in becoming an Adobe Analytics Champion? Join us on May 15 at 9 am PT, and learn how to become a 2025 Adobe Champion.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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 2

You can try configuring 'Opt In' using Adobe Launch and based on user consent create launch rules to track analytics. Hope these help -

https://experienceleague.adobe.com/docs/id-service/using/implementation/opt-in-service/launch.html?l...

https://experienceleague.adobe.com/docs/experience-platform/tags/extensions/adobe/id-service/overvie...

Thanks,

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.