orwel_dev_...) for local and staging builds. Data sent with the development key goes through the same pipeline, but it is marked as test data and every request shows up in Dev mode with the problems found in it.
What the development key changes
Test traffic still counts in your metrics. A lead that already existed (for example a real customer re-converting from your laptop) keeps its real status: the
is_test flag is only set when the development key creates the lead.Use it
Initialize the SDK with the development key in non production builds, and with the production API key in production. With environment variables that is one value per environment:.env.local
Production environment
debug: true to orwel.init() while testing to see the SDK logs in the browser console.
Dev mode
Open Dev mode from the Development section of the dashboard (/dev-mode). Turn on the development tools with the toggle if the section is locked.
- Requests: every request received with the development key, live, with its type, event code, visitor, endpoint and HTTP status. Filter by status (errors, warnings, OK) or by event type, or search by code, visitor, session or payload.
- Detail: the exact payload, the errors and warnings found in it with a suggested fix, and a session trace with every other request of the same session.
- Event types: the latest status for each kind of request, so you can tell at a glance whether identify, track and conversion all work.
What Dev mode checks
Errors mean the request was rejected. Warnings mean it was accepted but something will hurt your data.Before you go live
1
Send one of each
Load a page, trigger an
identify(), a track() with each of your custom codes, and one conversion() with an email.2
Clear the errors
Every request in Dev mode should be OK or have only the test mode note.
3
Swap the key
Deploy with the production API key. Production traffic is not logged in Dev mode, and from that moment leads notify and reach your integrations.