Adrails Docs

Load the script

GET /api/tracking/script returns the tracker your pages load, for a tracking source's public key.

GET/api/tracking/script

Query Parameters

key*string

The public key of your tracking source, shown in Settings > Tracking. It starts with atr_.

Match^atr_[A-Za-z0-9_-]{20,80}$

Response Body

application/javascript

text/plain

curl -X GET "https://example.com/api/tracking/script?key=<public key>"
"(()=>{ /* tracker */ })();"