The web SDK
GET
/sdk.js
const url = 'https://stitch-collector-dev.magic-blocks.workers.dev/sdk.js';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://stitch-collector-dev.magic-blocks.workers.dev/sdk.jsServed 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.
Responses
Section titled “ Responses ”JavaScript, cacheable for an hour.
Media type application/javascript
string