Forum Members
/** Universal First-Touch / Last-Touch Attribution Tracker ------------------------------------------------------- Drop this in your site header (Tag Manager, WPCode, or theme footer.php). Runs on every page load, on every page — no per-form setup needed. What it captures: UTM params (utm_source, utm_medium, utm_campaign, utm_term, utm_content) Paid click IDs (gclid, gbraid, wbraid, fbclid, msclkid, ttclid, li_fat_id) even when no UTMs are present Referrer-based source/medium classification when there's no UTM at all — including search engines (Google, Bing, DuckDuckGo, Yahoo, Yandex, Baidu), AI search/chat engines (ChatGPT, Perplexity, Gemini, Copilot, Claude, You.com, Phind, Poe), and social platforms Raw referrer string on every single page load, regardless of source */