
Google Tag Manager launches readAnalyticsStorage API to read GA client and session cookies
8 days ago
The readAnalyticsStorage sandbox API lets developers safely read Google Analytics client and session IDs in custom templates, replacing unreliable reverse-engineering methods. This prevents issues from cookie format changes. It is part of Google Tag Manager's custom template APIs, which use sandboxed JavaScript with require() statements. Another API, addConsentListener, registers functions to track consent state changes.