← Back to the journal

Engineering · September 24, 2026

How to audit a tracking script

Before you trust any analytics script, check what it actually sends. A practical audit you can run in your browser in fifteen minutes.

A magnifying glass over a line of code

Why audit

A tracking script runs on every page of your site with the same access as your own code. Before you describe it in your privacy notice, you should know exactly what it stores in the browser, what it sends, and where.

Step 1: storage

Open your site, then your browser’s developer tools. Under Application (or Storage), list the cookies, local storage, and session storage entries the script creates, and note their lifetimes. For Deeplitic in standard mode you should see _dl_vid (one year) and _dl_sid (30 minutes); in cookieless mode only a sessionStorage entry.

Step 2: network requests

In the Network tab, filter by the collection endpoint and inspect a few requests. Read the JSON body field by field. Check that page addresses do not contain personal data from your own URLs (names, emails, order numbers in query strings) and that the script does not send form contents.

Deeplitic removes query parameters other than UTM tags before sending the page address, reduces the referrer to its origin and path, and sends only form names, never field values.

Step 3: third parties

Confirm the script only talks to the endpoints you expect. If you serve it through your own domain with a proxy, the browser should not contact any analytics domain directly.

Step 4: the server side

Ask the vendor what is stored and for how long. Deeplitic stores a hash of the visitor identifier, not the raw value; does not store IP addresses or raw user-agent strings; keeps visit data for 365 days and raw events for 30 days by default; and lets you erase any visitor.

Step 5: write it down

Record what you found, the date, and the script version. Re-run the audit when you change the snippet or the vendor releases a new version; versioned script URLs make it easy to know which one you checked.

Keep reading
Cookieless analytics: measuring without a cookie bannerGDPR-friendly website analytics: a practical checklistAdd analytics to Shopify, WordPress, Webflow and WixCompare analytics toolsRead the practical FAQ
That’s the note.Read another