Just like the title, I’m wondering if there is any simple way to disable logging for few reasons
- I’m developing a new feature for frontend and don’t want to send events that are created from interacting with the website
- I’m running an automated E2E testing and don’t need to log events from the testing
Best answer by eddie.gaona
From what I understand, when you are testing your website you do not want any events to be triggered to any Amplitude projects.
If I am understanding this correctly, simply passing in an empty API Key would prevent events from logging into Amplitude. I did the following and no events were triggered in Amplitude:
Let me know if I have understood your use case here!