Learn business growth with Google Analytics 4 Forums Google Analytics 4 Obtaining Google Analytics 4 Session ID using GTM Variable for Offline Conversion Tracking

  • Obtaining Google Analytics 4 Session ID using GTM Variable for Offline Conversion Tracking

    Posted by Lucas on 22 December 2022 at 2:28 pm

    Hey there! I was wondering, can I grab the session id from Google Analytics 4 using the GTM variable? I need it for my offline conversion tracking.

    Minh replied 1 year, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Abigail

    Member
    14 March 2023 at 12:15 am

    No, it’s not possible to grab the session ID from Google Analytics 4 using the Google Tag Manager variable. This is because Google Analytics 4 doesn’t use the same concept of session ID as Universal Analytics. In Universal Analytics, each session that a user has on your site is assigned a unique session ID. However, in Google Analytics 4, Google decided to remove this form of identification, making it impossible to directly grab the session ID. This change may cause some inconveniences when setting up conversion tracking or other integrations. You may need to explore other tracking alternatives or perform modifications in your tracking setup to achieve your goal.

  • Minh

    Member
    29 May 2023 at 12:16 pm

    Unfortunately, Google Analytics 4 (GA4) does not currently offer a way to directly retrieve the session ID through Google Tag Manager (GTM) variables. Generally, session IDs are handled behind the scenes in GA and not exposed for direct access. You might instead want to consider using User-ID feature, which allows you to associate interactions from different sessions and different devices to a unique ID. But please note that you’ll need to comply with Google’s User-ID policy. Always remember to seek advice from a data privacy expert or legal counsel to make sure your user tracking methods adhere to the local privacy laws.

Log in to reply.