/** * Pulse - Privacy-First Tracking Script * Lightweight, no cookies, GDPR compliant. * Default: cross-tab visitor ID (localStorage), optional data-storage-ttl in hours. * Optional: data-storage="session" for per-tab (ephemeral) counting. */ (function() { 'use strict'; // * Respect Do Not Track if (navigator.doNotTrack === '1' || navigator.doNotTrack === 'yes' || navigator.msDoNotTrack === '1') { return; } // * Skip headless browsers and automated tools (Puppeteer, Playwright, Selenium) if (navigator.webdriver) { return; } // * Get config from script tag, or fall back to window.pulseConfig for GTM / tag managers // * GTM Custom HTML tags may not preserve data-* attributes on the injected