I had integrated Google analytics in my android application but on dashboard of GA it is not showing any user. please help me where i am getting wrong.
I am writing code as below
public void onCreate(Bundle icicle)
{
tracker=GoogleAnalyticsTracker.getInstance();
tracker.startNewSession(TRACKER_ID,20,this);
//also want to know what is this second parameter is used for. i am using 20 sec but I dont why to use that parameter.As written in GA it automatic dispatch after 20 sec is it right?
tracker.trackPageView("MyPage");
}
@Override
public void onDestroy()
{
super.onDestroy();
tracker.stopSession();
}
and there are multiple activities in my application using same type of code in all activities.
still not coming any data on GA. Completed 24 hours after integrated the GA in my app. please help why GA data is not coming.
If You have facing problem to integrate google analytics in your app not showing real time data .In google analytics make profile for your website . it is same as for app . gives you same UA-xxxxxxxx-1 and then integrate this in your app same as Google Analytics integration in Android app
It worked for me , I hope this will help you.