java - Google Analytics v4 can't see live hits -


I just started using GAV4.

I have read and read carefully and I have set up all necessary permissions and have put my GetTracker code inside a class that lives in an application class which serves all my app pieces. The data that needs global access to.

Here's the code:

  public static enum TrackerName {APP_TRACKER, // tracker is used only in this app GLOBAL_TRACKER, // Used by all apps of a company Tracker made Example: Roll-Up Tracking ECOMMERCE_TRACKER, // Tracker used by all ecommerce transactions from a company } Private Static Hashmop & lt; TrackerName, Tracker & gt; MTrackers = new hashmap & lt; TrackerName, Tracker & gt; (); Synchronize Static Public Tracker Milltrecker (App App) {If (! Matracker contentKey (trackername.pptmtr)) {GoogleAnalytics Analytics = GoogleAnalytics.getInstance (thisApp); GoogleAnalytics.getInstance (thisApp) .getLogger () setLogLevel (LogLevel.VERBOSE). Tracker T = analytics.newtracker (thisApp.getResources (). GetString (R.string.app_tracker_property_id)); MTrackers.put (TrackerName.APP_TRACKER, T); } Return mTrackers.get (TrackerName.APP_TRACKER); }  

Note I only need one App Tracker, so I removed sections about the Global Tracker and the Ecommerce Tracker. Also, R.string.app_tracker_property_id is my correct property ID and has a form for UA-XXXXXXXX-1.

Here is a code that I put inside a piece to prepare for a screen hit count:

  Tracker tracker = (AppCore) getActivity () GetApplication () GetTracker (); Tracker.setScreenName ("setting"); Tracker.send (New HitBuilders.AppViewBuilder (.) Build ());  

What happens when I enter this screen, I print the "no campaign data found" logcat (which I think is okay), and who says to the logger That the client ID is full of disk, successfully joins the analytics service and later a hit was sent to the server:

  10-17 13: 22: 52.093: V / GAV4 ( 23153): Thread [client_id_fetcher, 5, main]: Client ID loaded from disk. 10-17 13: 22: 57.098: V / GAV4 (23153): Thread [Gethrade, 5, Main]: Connected to Analytics Service 10-17 13: 22: 57.138: V / GAV4 (23153): Thread [Gatha, 5 , Main]: Connect: bindService for Entent {act = com.google.android.gms.analytics.service.START cmp = com.google.android.gms / .analytics.service.AnalyticsServices (Xtra) has come true ) 10- 17 13: 22: 57.143: I / GAV4 (23153): thread [Gatha, 5, main]: No campaign data found. Thread [Gaithread, 5, Main]: Started GA Thread 10-17 13: 22: 57.173: V / GAV4 (23153): Thread [Main, 5, main]: Service is connected, Binder: Android.ObenderProxy @ 414e2760 10-17 13: 22: 57.173: V / GAV4 (23153): thread [main, 5, main]: bound for service 10 -17 13:22: 57.178: V / GAV4 (23153): thread [main, 5, main]: service related to 10-17 13: 22: 57.208: V / GAV4 (23153): thread [gathread, 5, main ]: Loaded Customer ID 10- 17 13: 22: 57.213: V / GAV4 (23153): Thread [Gethrade, 5, Main]: Weighted (ID) 10-17 13: 22: 57.213: V / GAV4 (23153): thread [gathread, 5, main]:  

But for some reasons (called) 10-17 13: 22: 57.213: V / GAV4 (23153): Thread [Gethrade, 5, Main], seeing realtime in GA site, I can not find any details, check the entire tab and all the graphs are empty. Is this because my account is newly created (reading so much that I have to wait at least one day, but it has already passed), or am I doing something wrong?

The problem was fixed ... just had to wait another two days ...

Yes, it can be disappointing, but I could not see the result after only 2-3 days, so make sure you are doing it right (it is quite easy) and be patient.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -