Skip to content

Analytics

EdgeKit Analytics collects the events your pages send, checks each one against your schema registry, and keeps every valid event in your organization’s event archive. From the archive, events go on to the forwarders and the warehouse you choose. The tracker sends to your page’s own domain, so collection is first-party.

  1. The tracker on your page sends each event to /edgekit/a/t on the page’s own origin. EdgeKit’s tracker, @edgekitcloud/analytics-browser, is Snowplow’s browser tracker set up for EdgeKit. Any other Snowplow tracker can send to the standard Snowplow paths. See Collector reference.
  2. The collector reads the request and answers 200. 200 means received, not valid: the collector never refuses an event for its content.
  3. Validation checks each event, and every entity attached to it, against the schema it cites. See Event schemas.
  4. Enrichment adds what the request itself tells EdgeKit (below).
  5. The event archive keeps every valid event. An event that fails its check becomes a bad row instead: kept apart with its original bytes, never refused and never dropped. See Bad rows.
  6. Forwarders receive a copy of each archived event, for the destinations EdgeKit has set up for your organization. See Forwarding.
  7. The warehouse load copies the archive into your warehouse every 15 minutes. See Warehouse load.
  • Location from the connecting address: country, region, city and time zone.
  • Browser, operating system and device class, read from the user agent.
  • The page URL, the referrer and campaign parameters, split into fields. The referrer gets a source and a medium, such as search, social or email.
  • A request entity, cloud.edgekit/request: the connection’s network and TLS details, a bot verdict, and the consent basis declared for the event’s site.
  • Where the event belongs, in the cloud.edgekit/tenant entity: its site_id and the deployment that judged it.
  • Centinel’s verdict, in the com.centinelanalytica/validate entity, for an organization that gives EdgeKit its Centinel key. See Centinel.

The IP address is stored on every event, in user_ipaddress. Bots are labelled and never dropped: excluding them is a choice you make when you query.

The collector and enrichment never make up an event: every event was sent to the collector. Most come from your own trackers, on your pages, in your apps or on your servers. EdgeKit also sends events from the pages and the server it runs for you: the checkout page and the account page send theirs from EdgeKit’s servers, and your MCP server sends one event per search call, fetch call and new connection, plus a content telemetry report for each item a fetch returns. See MCP analytics.

  • The device cookie. The collector sets the device cookie on your domain. Paywall uses it to tell anonymous devices apart, for device meters and per-device experiments. See Whose count.
  • The bot verdict on each event is the same verdict Paywall rules read as bot.* facts. See Facts.
  • A page_view is not a metered read. Meters count on decide requests, and page views are counted from events. Neither number is computed from the other: bots, prefetch, preview traffic and reads under a grant can each move one and not the other.
  • No event creates a user. The ids on an event are the tracker’s, and anonymous browsing never creates a user.

No decision reads your event archive.

Your organization has its own collector, its own event archive, its own bad rows, and its own forwarders and warehouse load. Another organization’s events never pass through them, and yours never reach another organization’s stores.

  1. Route /edgekit/ on your domain to your tenant host, with the path unchanged. The tracker posts to the page’s own origin by default. See Mount /edgekit/ on your domain, or Call the tenant host directly if you cannot.

  2. Install the tracker with your site’s id. Open the site from Delivery › Delivery › Sites: the id is the last part of the page address. See The site id.

    import { createTracker } from '@edgekitcloud/analytics-browser';
    const analytics = createTracker({ siteId: 'site_example' });
    analytics.trackPageView();

    See createTracker.

  3. Hold events until consent, if your site’s consent basis is consent_required. See Record consent.

  4. Publish a schema for each event of your own, in Analytics › Configuration › Schemas, and deploy. Page views, page pings and the tracker’s own entities need no schema of yours. See Event schemas.

  5. Check the tracker’s requests in the browser’s network panel. Each should answer 200 with the body ok. See Troubleshooting.

  6. Ask EdgeKit to set up forwarders or a warehouse load, if you want your events outside EdgeKit. Neither has a console screen, except the Braze forwarder, which starts once your Braze key is saved in Delivery › Configuration › ESP. See Forwarding.

Questions are answered in the Analytics FAQ.

edgekit.ai