So we are using the new version of GA for Android.
We have a login and logout mechanism that we are tracking using custom dimensions on the session...
So as we are going through testing the analytics, we are getting events that are showing up as logged out, when the method that fires to register the event cannot be reached unless the user is logged in.
My question is how does GA dispatch handle items when something about the session has changed before the next dispatch?
I.E.
Start App
do Event A, do Event B, do Event C
Login and change session dimesions
do Event D, do Event E, do Event F
DISPATCH
Will events a-c be shown as logged out and d-f as logged in? or will they all show as logged out since that was the state of the dimension that was applied to the session when the dispatch queue started getting hits?
Set up custom dimensions Sign in to Google Analytics. Click Admin, and navigate to the property to which you want to add custom dimensions. In the PROPERTY column, click Custom Definitions > Custom Dimensions. Click New Custom Dimension.
A dimension is a descriptive attribute or characteristic of an object that can be given different values. For example, a geographic location could have dimensions called Latitude, Longitude, or City Name. Values for the City Name dimension could be San Francisco, Berlin, or Singapore.
Analytics surfaces data about user behavior in your iOS and Android apps, enabling you to make better decisions about your product and marketing optimization. View crash data, notification effectiveness, deep-link performance, in-app purchase data, and more.
Multiple Dimensions and Custom Report. I like to share one additional way to work with dimensions in Google Analytics: multiple dimensions combined in a custom report. In order to get this to work you need to use a flat table. Within a flat table you are able to select up to five dimensions.
The session scoped custom dimensions will take the last value they were set to during a session.
Lets abstract this question away from weather or not a user is logged in or logged out. Lets say you have a session and within that session you send thee page views each with a different value for the session scoped custom dimension ga:dimension1. What value would you expect that dimension to take when you query for the events that occurred in that session? You should probably expect it to be the last value you set to.
So what can we learn about the EventA event B and Event C you mention with resepect to the session scoped custom dimension? you can learn that those events occurred during a session which a user was logged in, not weather the user was logged in when those events occurred.
Changing the value of a session scoped custom dimension does not create a new session. If you would like to keep track of the state that a hit occurred in perhaps you need a hit scoped custom dimension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With