Operational

DocsGithub Open app

Operational

Github Articles Pitch Usecases Playground API

Contents

Start hereAPI DocsIntroductionSend your first eventEvent parametersStructured EventsActionsContextsCategoriesError handlingManualIntroductionBasicsConventionsSetupTest modeNotificationsPWASelf hostingIntroductionInstall locallyInstall on VPSInstall on RenderInstall via DockerInstall via Docker and CoolifyOnboardingSetup .envIntegrationsBest practicesOtherVisionRoadmapContributing

Chapter 4. Test mode

Ops has a test mode built in. Works very similar to Stripe’s test mode.

Test mode offers these benefits:

  • Debugging events from your local server is easier.
  • Keeps most of your codebase same for logging events.
  • Doesn’t clog up unnecessary events in your feed from your local/staging server.
  • Doesn’t rack up unnecessary costs(You won’t be charged for test events)

Test events are automatically removed from your account after 3 days. Also you won’t receive notifications for test events.

How to use test mode?

First, you need to send test events. These test events will show up in the webapp only if test mode is on. To turn on test mode, go to the profile page and turn on test mode.

How to send test events

Simply pass test: true to your event and it will be marked as a test event.

This event won’t automatically show up in the user interface. Go to your profile page and turn on the test mode toggle.

Best practices

On your development / staging server, make sure all events has test: true

If you’re using the nodejs sdk, you can pass test: true as one of the sdk parameters and it will mark all api calls as test api calls.

We recommend turning test mode on based on NODE_ENV. We recommend making test mode on by defauly but turn it off if NODE_ENV is production.

SetupNotifications

Operational

Event tracker for your product.

PrivacyTerms
About the product
  • Playground
  • API
  • Pitch
  • Wordpress plugin
  • Bubble plugin
Related to the product
  • VS Logsnag
  • Open Source
  • Articles
Useful articles for your business
  • Force post: The Payment Hack that lets Merchants charge you without approval
  • 6 Best practices for early stage B2B SaaS customer support
  • Setup event notifications for your SaaS
  • How to get high quality users for your B2B SaaS business?