question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi there, how can I get ga_session_id and ga_session_number

See original GitHub issue

What feature would you like to see?

I want to get ga_session_id and ga_session_number for each event in Android/iOS client. How can I get these values?

How would you use it?

We are trying to align the number of user sessions between Segment and Google Analytics. Google Analytics is calculating session using ga_session_id and ga_session_number parameter having these parameters helps DE align the number of user sessions it should be retrievable from firebase SDK.

So we will add ga_session_id and ga_session_number we track any event, and send it both to analytics, segment… After that, we can easily analyze.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
giovaniortolanicommented, Oct 19, 2022

It would be an extremely useful resource for us to use Measurement Protocol V2 (https://developers.google.com/analytics/devguides/collection/protocol/ga4) in its full capabilities.

Missing session_id and session_number makes using Measurement Protocol V2 useless for apps.

Exposing the session_id and session_number would be a way to tie in and maintain session continuity.

Another use case is apps that navigate to the web version in the browser. Currently we are unable to tie the user session (app -> web).

If there was the possibility of recovering session_id and session_number, it would be possible to perform this binding.

Please give this a special attention.

1reaction
giovaniortolanicommented, Oct 8, 2022

Hi all, instead of commenting a “+1”, kindly leave a thumbs up emoji on the main post. This will allow our engineers to prioritize adding this to the roadmap based on popularity and demand. Thanks!

@lcrespilho @marcoscgfilho @BiancaSeolin

Read more comments on GitHub >

github_iconTop Results From Across the Web

GA4 + BigQuery Tutorial - Getting session_id Using ... - YouTube
Step-by-step tutorial on how to assign session_if to each hit inside GA4 (firebase) table.Your code template №1: MAX(CASE WHEN params.key ...
Read more >
How to reliably get session id generated by Google Analytics?
If you're talking about the client ID, you can get that as follows: ga(function(tracker) { var clientId = tracker.get('clientId'); console.log(clientId); });.
Read more >
Get Session ID in browser - New Relic Explorers Hub
Hi, was wondering if there's a way to access the current Session ID in the browser. As it's set as a cookie on...
Read more >
[GA4] About Analytics sessions - Google Support
Session number identifies the number of sessions that a user has started up to the current session (e.g., a user's third or fifth...
Read more >
Missing user_pseudo_id's & ga_session_id's in GA4 BigQuery ...
Hello, I understand you are looking for some answers about your Google Analytics data Export to BigQuery via Firebase.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found