No data in showing custom variable
I have created an app where I have used GoogleAnalyticsTracker
to track events in google analytic.
Everything works fine here but when I want to track custom variable for a particular page than it doesn't show in my google analytic account. Although all other data i.e. pageView, Event are sent to my google analytic account except custom variable.
Why this happen is there anything missing in my code?
Code that I have written:
GoogleAnalyticsTracker tracker;
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
tracker = GoogleAnalyticsTracker.getInstance();
tracker.startNewSession("UA-xxxxxxx-1", this);
tracker.setCustomVar(1, "Medium", "Mobi开发者_如何学编程le App",3);
tracker.trackPageView("/testApplicationHomeScreen");
tracker.dispatch();
}
Sometimes it takes time for google analytics to propagate through. I've seen times of up to a day. How long has it been since you've tried to track some analytics?
精彩评论