Get the latest news and product updates on GTM.
๐GA4 Lifehacks @ga4_lifehacks
๐Google Data Studio Lifehacks @google_data_studio_lifehacks
Post #116
83
GO @gtm_lifehacks
readAnalyticsStorage sandbox API is now available. This client-side JavaScript API allows developers to read client and session IDs in a custom template. Previously, developers relied on reverse-engineering or custom parsers to understand Google-set cookie formats, which wasn't a reliable approach. It was prone to breaking whenever Google Analytics updated its cookie formats.readAnalyticsStorage API allows Tag Manager users to safely read the necessary cookie parts, future-proofing their approach and preventing interruptions from format updates