I encountered the following problem:
When using the Android SDK I would like to send the user's individual game score as a numeric value together with an action.
So in Android I normally use
- HashMap cdata = new HashMap<String, Object>();
- cdata.put("myapp.evar.game_score", 12345);
- Analytics.trackAction("myapp.action.game_score_changed_action", cdata);
The eVars are created in the web dashboard. This work nice for a defined set of values, but doesn't work very well for numeric values.
I would like to apply a filtering like "greater than 1500" but this is not possible like this since every value is just a string.
How is it possible to track these numeric values?
I've read a lot in the documentation and assume it could be some kind of events with
But I'm not sure about this and have no clue what to create in the web dashboard to work together with this.
Or maybe I should use some kind of counter variable?
How is this done correctly?
Thanks in advance!
I don't think we can use Numeric Operators on eVars. Someone might has some other ideas, lets wait for them.
Yes, you can bucket the eVars from Client End, but if you need to understand/compare an individual eVar score (Let's say 1250), it is not possible. So i would recommend for Classification!
thank you very much for your reply.
I didn't know about the classification rule builder. It's handy to have this possibility.
Although, bucketing by RegEx-ing string eVars is kind of a workaround. It "feels somewhat wrong".
I just wanted to use standard numeric operators.
As alternative I now bucket on the client and just send the bucket keys via eVar.
If there is another approach at sending and comparing numbers I would be happy if you'd let me know.
For your above scenario, i don't think numeric event will help.
Assume that I have individual game scores 1600 and 1700. If you capture the numbers using a eVar, you will have 1 Page View for 1600 and 1 Page View for 1700. But if you capture it in event (Numeric), it will have value 1600+1700 = 3300. You can never add a segment where you want to specify "greater than 1500" to get the desired results you are expecting.
I would say, it is better to capture it in an eVar and then classify it using Classification Rule Builder because it has Reg-Ex option to bucket the categories.
For Page Load Time, most people using the same mechanism. Below the screen grab:
I would suggest the same method for you.