Solved

TypeScript Ampli Wrapper: Opt Out of Tracking

  • 1 April 2023
  • 4 replies
  • 86 views

Ello 👋🏻

I'm currently trying to opt out of tracking using the Ampli SDK, but I'm having trouble finding clear instructions on how to do so. I saw a similar concept in the JavaScript SDK documentation, but I'm not sure how to implement this using the Ampli SDK. Can you provide some guidance on how to opt out of tracking using the Ampli SDK?

https://www.docs.developers.amplitude.com/data/sdks/javascript/#opt-users-out-of-tracking

icon

Best answer by Jon Shek 3 April 2023, 22:24

View original

4 replies

Userlevel 1
Badge +1

Have you tried this method? https://www.docs.developers.amplitude.com/data/sdks/typescript-browser/#opt-users-out-of-tracking

Userlevel 6
Badge +9

Thanks @Jon Shek! Please keep us posted if you need additional help @Guardian Score! 😃

Good day all, happy to report I was able to resolve this!  @Jon Shek @Jeremie Gluckman 

After taking another look at the Ampli documentation, I noticed there was a client object within the Ampli instance.

ampli.client.setOptOut(true);

Appreciate y’all pointing me in the right direction.
Cheers!
Josh

Userlevel 6
Badge +9

Great! Thanks for the update @Guardian Score

Reply