danwilson / google-analytics-plugin

Cordova (PhoneGap) Plugin to connect to the native Google's Universal Analytics SDK 3.0
MIT License
695 stars 500 forks source link

trackView is getting too long to propagate in realtime dashboard #495

Closed aniciom closed 6 years ago

aniciom commented 6 years ago

Sorry to re-open an issue like this but it seems to be still a problem, its related with the ticket #33 When i first open the app the trackView gets propagated inmediatly in the realtime dashboard, after i do other tracks it takes a lot to propagate in the rt's dashboard.

This is the output of my debug:

02-10 22:07:46.905 D/GAv4 ( 3432): setLocalDispatchPeriod (sec): 30 02-10 22:07:46.945 D/GAv4 ( 3432): Hit delivery requested: ht=1518300466910, _s=12, _v=ma11.9.10, a=1885228736, aid=io.ionic.starter, an=MyApp, av=0.0.1, cd=app.playlists, cid=673c735d-df63-40de-ad6a-20c759d8fe34, sr=1440x2712, t=screenview, tid=UA-113944087-1, ul=en-us, v=1 02-10 22:07:46.992 D/GAv4 ( 3432): Hit sent to the device AnalyticsService for delivery 02-10 22:08:26.665 D/GAv4 ( 3432): setLocalDispatchPeriod (sec): 30 02-10 22:08:26.677 D/GAv4 ( 3432): Hit delivery requested: ht=1518300506667, _s=13, _v=ma11.9.10, a=438496625, aid=io.ionic.starter, an=MyApp, av=0.0.1, cd=app.browse, cid=673c735d-df63-40de-ad6a-20c759d8fe34, sr=1440x2712, t=screenview, tid=UA-113944087-1, ul=en-us, v=1 02-10 22:08:26.705 D/GAv4 ( 3432): Hit sent to the device AnalyticsService for delivery 02-10 22:08:29.264 D/GAv4 ( 3432): setLocalDispatchPeriod (sec): 30 02-10 22:08:29.307 D/GAv4 ( 3432): Hit delivery requested: ht=1518300509273, _s=14, _v=ma11.9.10, a=155654557, aid=io.ionic.starter, an=MyApp, av=0.0.1, cd=app.search, cid=673c735d-df63-40de-ad6a-20c759d8fe34, sr=1440x2712, t=screenview, tid=UA-113944087-1, ul=en-us, v=1 02-10 22:08:29.368 D/GAv4 ( 3432): Hit sent to the device AnalyticsService for delivery

Everything seems to be ok and i can't find the problem in there.

These are my specs: Cordova CLI: 7.0.1 Gulp version: CLI version 3.9.1 Gulp local:
Ionic Version: 1.3.4 Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 Android SDK 26.0.2

I might send the app in background mode and the track's hits still seems to be delivered, i didn't try closing it but its supposed to be delivered too.

I'm using the lastest version of the plugin it seems to be working right in browser mode but the problem is on android emulator and device, I didn't try it on iOS.

My question is, is there any way to speed up this? Maybe its an android's issue but the data its not being so accurate at all with this issue happening.

Sorry for my english. Thanks in advance

aniciom commented 6 years ago

I found something interesting at here https://www.e-nor.com/blog/google-analytics/mobile-analytics-real-time-reporting-not-what-youd-expect that might be what's happening, seems to be true, making a couple of tests the data gets refreshed after 1-2minutes in the dashboard