hey there! how do I deactivate the JS SDK on a web...
# support
a
hey there! how do I deactivate the JS SDK on a website? I would like to create a small script for this only visible to internal members, as to not capture data when someone from our team visits the website. This avoids the generation of unnecessary events which wouldn't be useful.
m
Hey There! 👋 Your message has been received by the RudderStack team. We will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
h
Hey @able-controller-17526, Add logic in your site so that is doesn't trigger events when the users are from your team.
a
Thanks @high-zoo-17436. I understand. I was expecting a different approach though, similar to what libraries like posthog have, where there are methods like:
Copy code
posthog.opt_out_capturing()
posthog.has_opted_out_capturing()
posthog.opt_in_capturing()
To make things easier on complex scenarios
But given there are none, I'll figure it out using our logic