开发者

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 Vi开发者_如何学编程sitors->Custom Variables, but that only says

There is no data for this view.

Where can I see the custom variables? :(


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


Custom variables have been replaced by Custom Dimensions and Metrics.

https://developers.google.com/analytics/devguides/collection/android/v2/migration#update-methods

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜