Should session ID be sent to GA4 as a User Property in the configuration tag?

962 Views Asked by At

I currently have a user-defined variable in GTM that gets the GA Session ID from the cookies. I am inclined to add it as a user property to the GA4 Page View/Configuration tag and then register it as a user-scoped dimension in GA4 (since session-scope doesn't exist yet). My question is, what impact will treating session ID as a user property and dimension have on the data collection?

I should add, I am doing this in order to have the Session ID accessible by API for use with the Measurement Protocol.

2

There are 2 best solutions below

0
Matthew Michaud On

Just realized that the Session ID is send as an event parameter in the MP. Therefore, seems pretty clear that it should be event-scoped and passed with an event tag!

1
Michael Castro On

You may capture Session ID and Session Number by defining the required custom dimension in your GA4 Admin section. https://help.channelmix.com/hc/en-us/articles/19904317846035