Troubleshooting
Check configuration, consent, delivery, and routing behavior when expected analytics do not appear.
No events arrive
Work through these in order. Open your browser's developer tools first: the Network tab shows the request to collect.tracwell.app/v1/events and its response.
- 1
Is the script loading?
Look for script.js in the Network tab. Ad blockers and privacy extensions often block analytics scripts; test in a clean browser profile.
- 2
Is Do Not Track on?
Tracwell sends nothing from browsers with Do Not Track enabled, unless you turned that off in Tracking setup.
- 3
Is consent pending?
With consent set to required, nothing is sent until your banner calls setConsent("granted").
- 4
Does the origin match?
The page must be served from the website URL you added. example.com and www.example.com match each other; other subdomains, ports and localhost need their own website.
- 5
Is the project key right?
Copy it again from Settings → Website → Tracking setup. Never use a server key in the browser.
- 6
Is the plan active?
Collection pauses when the monthly event allowance is used up, including the 10K events on Free, until the next month or an upgrade.
A Content Security Policy can also block the script or its requests. Allow https://collect.tracwell.app in both script-src and connect-src.
Collector responses
When the collector rejects a request, its response body has an error.code; find it in the Network tab. The SDK reports a rejected batch to onError as DELIVERY_REJECTED with the HTTP status, and as DELIVERY_EXHAUSTED after retries run out.
- ORIGIN_REJECTED
- 403. The page's origin is not the website URL you added, or a React Native
projectOrigindoes not match it. - PROJECT_REJECTED
- 403 or 401. The project key or server key is wrong, revoked, or belongs to a deleted website.
- COLLECTION_NOT_ENTITLED
- 402. The workspace has no active plan.
- USAGE_LIMIT_REACHED
- 429. The monthly event allowance is used up. Events are rejected until the allowance resets or you upgrade.
- RATE_LIMITED
- 429. Too many requests in a short time. The SDK retries automatically.
- IDENTITY_NOT_ALLOWED
- 400.
identify()or a user ID was sent to a Private-mode website. - PAYLOAD_INVALID
- 400. The event failed validation, for example a reserved name or a property over the limits.
issueslists each problem.
Other problems
- Testing locally
- Add a separate website whose URL is your local address, such as
http://localhost:3000, and use its project key while developing. - Duplicate page views
- Remove any router hook that calls
page(). Tracwell already tracks History API navigation; callpage()only for changes it cannot see. - Events are late
- Events are sent in small batches. Call
await analytics.flush()while testing to send them immediately. - track() returns undefined
- Collection is blocked (consent, Do Not Track) or the event failed validation. Add an
onErrorcallback: validation failures arrive asEVENT_INVALIDwith the problems listed inissues. - Server key returns 401
- The key is wrong or revoked, or the website is not active in Product mode. Server events and revenue need Product mode; AI crawler tracking works in both modes.
- Revenue has no source
- The revenue event had no
session_id, or the session was not recorded. Check that your checkout passesgetSession()values through to the webhook. - MCP will not connect
- MCP works on every plan, including Free, but only workspace owners can approve a connection. API keys can be revoked in Settings → MCP.
Still stuck? Email hi@tracwell.app with the website URL and the error code you see. Never send a server key or API key.