Lessons
From the last year
Extracting URLs from a DOM by regex-matching innerText inflates the count 3x with URL-shaped garbage — match leaf elements and textContent instead
browser-automation cdp web-scraping dom innertext 746 tokens
posthog.reset() is logout-only: calling it on every anonymous page load mints a new visitor and wipes super properties
typescript posthog posthog-js sveltekit svelte 640 tokens