Cosembra

Cosembra

Pronounced co-SEM-branoun

  1. A service that collects the events your website sends, such as page views, clicks and plays, and stores each one with its page, device and country.
  2. Event collection that keeps nothing it shouldn't: no cookies, no IP addresses, and personal data removed on the way in.

Example: we send our video events to Cosembra

Read the quickstart

One call in, one clean row out

Add one script and call track() where something happens. Cosembra fills in the context, removes personal data and stores the event. You don't write code for any of it.

Your page

cosembra.track('item_viewed', {
  item_id: 'vid_88',
  item_type: 'video',
})

Stored by Cosembra

event_name
item_viewed
properties
{"item_id":"vid_88","item_type":"video"}
page_path
/watch/88
page_url
…/watch/88?email=[redacted]
session_id
s_q81mz0r5t2y7u4i9
received_at
2026-12-05 15:30:01.122
country
DE
browser
Firefox
device_type
desktop
ip_address
not stored
Highlighted fields are added or cleaned on our side. You don't write code for them.

Three steps from install to stored data

  1. Add the script

    Paste the loader snippet into your page's <head> and set your site key. The script loads asynchronously and weighs about 4 KB compressed.

    cosembra.init('pk_live_…', {
      endpoint: 'https://events.cosembra.com/v1/batch',
    })
  2. Track what matters

    Call track() with an event name and the details you care about. Use our recommended events for video, search and commerce, or your own names.

    cosembra.track('video_started', {
      item_id: 'vid_88',
      duration_s: 1726,
    })
  3. We take it from there

    Events are batched, sent, checked against your allowed domains, cleaned, enriched and stored. Page views can be recorded automatically, including in single-page apps.

Built for how browsers really behave

Tabs close mid-send
Queued events go out with sendBeacon as the page hides, so the last click isn't lost.
Networks drop
The queue is kept on the device and retried with backoff, following the server's Retry-After.
Retries repeat
Every event carries its own id. Send it twice and it's stored once.
Clocks are wrong
The server corrects each event's time for the visitor's clock skew.
Some events can't be lost
Send purchases and subscription changes from your backend with a secret key, through the same API.

What we keep, and what we don't

Stored with each event

  • The event name and the properties you send
  • Page URL, path, title and referrer
  • Campaign tags (UTM)
  • Screen size, language and time zone
  • Browser, operating system and device type
  • Country
  • The visitor's consent state

Never stored

  • IP addresses, not even hashed
  • Cookies: we don't set any
  • Email addresses, card numbers and US social security numbers found in any text
  • Values under keys such as password, token and email
  • Sensitive parameters in page URLs

The scrubbing catches common mistakes; it can't recognize every kind of personal data, so don't send it. Where consent is required, consent mode keeps everything in memory and sends nothing until the visitor agrees.

Planned

Cosembra is in early access. Collection and storage work today. Next on the roadmap:

  • Access to your data: exports and a query API.
  • Recommendation rails: trending, “watched together” and, later, personalized rows, learned from the events you already send.
  • Bring your own events: use the event names you already send to Segment or GA4, without renaming them.

See it on your own site

The quickstart takes you from the script tag to your first stored event.

Read the quickstart