DemoInbox Data Layer

Collector: /collect • Client: /dl.js • Health: /health

Quick test

  1. Open DevTools Console on any site and run:
    (async () => {
      const res = await fetch("https://demoinbox.com/collect?debug=1", {
        method: "POST",
        headers: {
          "content-type": "application/json",
          "x-dl-site": "site_a",
          "x-dl-key": "demo-site-a-key"
        },
        body: JSON.stringify({
          event: "debug_test",
          ts: Date.now(),
          page: { url: location.href, path: location.pathname, referrer: document.referrer, title: document.title, utm: {} },
          props: { hello: "world" },
          consent: { analytics: true }
        })
      });
      console.log(await res.json());
    })();