Tracker and cookie monitoring
Two tools share one scanner (go/internal/sitescan): a one-off CLI check and scheduled monitors.
Two tools share one scanner (go/internal/sitescan): a one-off CLI check and scheduled monitors.
What a scan finds
For each page: third-party <script>, <iframe>, <img> (pixels) and preconnect/preload hosts, inline tracker snippets (fbq(, gtag(, _hsq, ...) and every cookie the page's responses set (Set-Cookie: name, domain, expiry, Secure/HttpOnly/SameSite). Hosts and cookie names are matched against a built-in catalog of about 40 vendors (GET /v1/projects/{pid}/tracker-catalog); any other third-party script, iframe or image host is reported as host:<name> with category other. The scan fetches HTML only; cookies a script writes later from JavaScript are attributed through that vendor's script, not listed one by one.
CLI
lucida doctor --site https://shop.example --cookies # inventory
lucida doctor --site https://shop.example --cookies --json > trackers.json # save a baseline
lucida doctor --site https://shop.example --cookies --baseline trackers.json --pages https://shop.example/pricingWith --baseline the diff is printed and the command exits 1 when a tracker or cookie is new.
Scheduled monitors (Data > Tracker monitoring)
A monitor lists 1-20 pages and an interval (1-720 hours). lc-connectors runs due monitors every LC_TRACKER_MONITOR_TICK (default 5m, 0 disables the scheduler) through the egress-guarded HTTP client. Each run stores the inventory and the diff against the previous successful run.
Every tracker has a decision in an append-only log (allow or block, with actor and note; the newest entry wins). A run alerts when a new tracker has no decision yet, or when a blocked tracker is still present. The alert is a POST of JSON {type: "tracker_monitor.alert", project_id, monitor_id, monitor, unreviewed, blocked, new_trackers, new_cookies, url} to the monitor's https alert_webhook; the web page shows the same state without a webhook.
Route (lc-connectors) | Notes |
|---|---|
| list (cursor pagination), create (admin) |
| patch/delete need admin |
| scan now (admin) |
| newest first |
| log ( |
| built-in vendors |