Troubleshooting
The tracker gets 200, but the event is missing from my data
Section titled “The tracker gets 200, but the event is missing from my data”200 means the collector received the event, not that it was valid. In order:
- It may be a bad row. An event whose schema is not deployed, or whose data does not match its schema, is kept apart and never reaches your archive, your warehouse or a forwarder. Ask EdgeKit for that site’s bad rows. See Bad rows.
- It may be under another site. A wrong or missing
siteIdfiles the event under that id or under_unresolved. Query for everysite_idyour data holds, not only the ones you expect. - It may not be loaded yet. The warehouse load runs every 15 minutes and reads archive files written between 30 and 2 minutes before it starts. See Warehouse load.
If the answer was 200 with an empty body, the collector did not answer it: something between the page and the
collector did. If it was 200 with the text edgekit.ai alive, your forwarder changed the path. Forward
/edgekit/* unchanged. See Mount /edgekit/ on your domain.
The tracker sends nothing at all
Section titled “The tracker sends nothing at all”- Consent is pending. With
requireConsent: true, every event waits in memory until your page callsgrantConsent(), and is lost if the page unloads first. See Record consent. - A blocker stops it. Content blockers can block analytics requests. EdgeKit’s own paths,
/edgekit/a/tand/edgekit/a/i, do not name a tracking vendor the way Snowplow’s standard paths do, but a blocker can still block them.
The collector answers 400
Section titled “The collector answers 400”The request can never succeed, so the tracker drops the event. The x-edgekit-reason response header says why:
unknown_path: the tracker posts to a path the collector does not serve. CheckpathPrefix, or the tracker’spostPath.unparseable,wrong_envelopeorempty: the body is not apayload_dataenvelope with at least one payload. It usually comes from a hand-built request.oversize: the body is over 1,000,000 bytes or carries more than 200 payloads. Send smaller batches.method_not_supported: usePOSTorGET.
See Collector reference.
The collector answers 503
Section titled “The collector answers 503”The collector cannot judge events yet. The tracker keeps the events and sends them again later. no_document means your organization has no deployment yet: deploy once. Any other reason is on
EdgeKit’s side.
I published a schema, and its events are still schema_not_found
Section titled “I published a schema, and its events are still schema_not_found”- Deploy. Publishing adds the version to your draft. Its events are bad rows until a deploy carries it. See Stage and deploy a change.
- Check the URI the event cites. The version must match exactly: an event citing
1-0-1is not checked against1-0-0. - Check every entity. One attached entity with no schema makes the whole event
schema_not_found, whatever the event’s own schema. - Ask EdgeKit to deploy your collector. The collector checks events against the schemas built into it when it was last deployed. A version you deployed after that waits for its next deploy.
The events received until then stay bad rows: EdgeKit does not replay them.
Every event from my mobile app or a browser plugin is a bad row
Section titled “Every event from my mobile app or a browser plugin is a bad row”The schemas Snowplow’s trackers and @snowplow/browser-plugin-* packages send by default ship in your schema registry. A
tracker feature that sends anything else, such as an entity you switched on, needs that schema in your schema registry at
the exact version the tracker cites. Ask EdgeKit to import it, or publish your own. Read the bad rows’ schema URIs to
see which one is missing.
Events from one site show up under another site_id, or _unresolved
Section titled “Events from one site show up under another site_id, or _unresolved”The tracker on those pages sends a different siteId, or none. The collector files events under the id they name
and never corrects it. Fix siteId in createTracker, or appId in another Snowplow tracker: events already collected keep the id they arrived with.
Location fields show a server’s location
Section titled “Location fields show a server’s location”Your events reach the collector through a server of yours, so the connection is that server’s. Send the user’s
address in the payload’s ip parameter: it replaces user_ipaddress. Location is still worked out from the
connection, so it stays the server’s.
Every returning device looks new since I switched from Snowplow
Section titled “Every returning device looks new since I switched from Snowplow”The collector is not reading your existing Snowplow cookies, or reads them under different settings. Ask EdgeKit to
check the cookie names and attributes your sites use, especially SameSite: a cookie written back with another
SameSite value is a new cookie to the browser. See
Can I keep the device ids my Snowplow tracker already set?
Braze shows no page views, or none from anonymous devices
Section titled “Braze shows no page views, or none from anonymous devices”Braze receives only events that carry a user_id, so nothing from a device before sign-in reaches it. Call
setUserId once a user signs in. A page view does reach Braze, as page_view with no properties: the page’s URL is
not sent. A Braze event carries no site id either. See Forwarding.
My warehouse has duplicate events
Section titled “My warehouse has duplicate events”Two copies of one event carry the same event_id. The load merges copies that arrive close together, and a copy
that arrives much later can stay as a second row. Deduplicate on event_id in your queries. See
Are events ever counted twice?
My warehouse is missing a period
Section titled “My warehouse is missing a period”A load failed or did not run, so the files it would have read were never loaded. Ask EdgeKit to load those days
again. A day already loaded merges on event_id, so loading it twice is safe.