
Google Analytics session number now accessible via gtag.js get API update
6 days ago
The gtag.js get() API now supports retrieving the Google Analytics session number from the session cookie, in addition to the session ID. The get command fetches values set with gtag.js, using gtag('get', '<target>', '<field_name>', callback). Supported field names include client_id, session_id, session_number for GA4, and gclid for Google Ads and Floodlight.