Developers

Documentation

Up and running in five minutes.

1. Add the snippet

Paste this before the closing head tag of your pages. The site is identified by its domain name.

<script async src="https://cdn.open-telemetry.net/t.js"
        data-site="example.com"></script>

2. Track an ad slot

Mark an element as an ad placement to receive viewability and latency.

<div data-ot-ad="homepage-top" data-ot-network="my-network"></div>

3. Query the API

Fetch p75 LCP for the last 7 days.

curl -H "Authorization: Bearer $TOKEN" \
  "https://api.open-telemetry.net/v3/sites/example.com/metrics?m=lcp&p=75&range=7d"