Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics Android SDK custom vars not registered/not showing?

So I'm still mucking around with this Google Analytics SDK. According to this, I should be able to send custom vars with a visitor scope that include the app version, and the phone model.

Using tracker.getVisitorCustomVar(i) I can see that the information is indeed stored, and the log shows NetWorkRequestUtil/ConstructPageviewRequestPath with a message that contains the custom vars.

But it does not show up in the analytics report along with the other tracking information. I thought I would find it under Visitors->Custom Variables, but that only says

There is no data for this view.

Where can I see the custom variables? :(

like image 444
AmITheRWord Avatar asked Feb 04 '11 09:02

AmITheRWord


1 Answers

How long ago did you incorporate the custom vars? Analytics is not realtime, there can be an --i think-- 24 hour gap?

I'm doing this, and it works for me. I'm assuming you do get other data, so your initialisation and 'dispatching' of the tracker is correct? You can set your customvar like so (as I imagine you are doing allready).

tracker.setCustomVar(TRACK_SLOT_AUTH, TRACK_CVAR_AUTH, isAuth, TRACK_SCOPE_SESSION);

(using global vars to be sure not to override already used slots here, but the intention should be clear)

The data shows up under Visitors->Custom Variables

like image 153
Nanne Avatar answered Nov 15 '22 03:11

Nanne