Skip to content

The web SDK

GET
/sdk.js
curl --request GET \
--url https://stitch-collector-dev.magic-blocks.workers.dev/sdk.js

Served from the same first-party host the events post to, so a page never talks to a collector outside its own registrable domain. Load it with one script tag; it records page views and sessions, click ids and the ad ids from the tracking templates, the vendor pixels’ cookies, and honours Global Privacy Control on its own.

JavaScript, cacheable for an hour.

Media type application/javascript
string