Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens with iphone google analytics calls when there's no internet connection?

Hey Fellow Developers! I'm doing a little research about Analytics products for iphone apps. I came across google analytics which seems pretty good. Somehow I'm not finding lot's of documentation about it. Basically my concern is:

What happens to a trackPageview or event tracking call when there's no Internet connection? Are these method calls persisted for future dispatch when there's a connection available or do they generate an error and that's it?

Thank you in advance for your help!

like image 925
Pacu Avatar asked Dec 19 '10 19:12

Pacu


People also ask

Can Google Analytics track iOS?

For install tracking on iOS, Google Analytics relies on Apple's resettable Identifier for Advertising (IDFA) to match app sessions to campaigns. To accomplish this, Google Analytics relies on Ad Networks to provide and send the IDFA and other campaign information to Google Analytics when an app user clicks on an ad.

What is Google Analytics on Iphone?

Google Analytics automatically collects certain data and offers optional features that determine which additional types of data are collected and how they are used. An app instance id is automatically assigned to each instance of an app, for purposes of computing user metrics throughout Analytics.

Does Google Analytics take time to update?

Processing latency is 24-48 hours. Standard accounts that send more than 200,000 sessions per day to Analytics will result in the reports being refreshed only once a day. This can delay updates to reports and metrics for up to two days.

Does iOS update affect Google Analytics?

Apple's iOS 15 is the latest operating system update that includes more privacy features, which will impact Google Analytics and marketers in some notable ways. These changes are part of Apple's ongoing commitment to data privacy.


2 Answers

According to Google. Their documentation says

If a user loses network access or quits your app while there are still hits waiting to be dispatched, those hits are persisted in local storage. They will be dispatched the next time your app is running and dispatch is called.

You can read more about how disptaching takes place at: https://developers.google.com/analytics/devguides/collection/ios/v2/dispatch

like image 93
Alex Metry Avatar answered Oct 03 '22 16:10

Alex Metry


The GA SDK has batching possibility, which is als recommended to use.

"To save on connection and battery overhead, we recommend batching your tracking requests. You can call dispatch on the tracking object any time you want to make a batch request, and you can do this either manually or at specific time intervals."

http://code.google.com/intl/de-DE/mobile/analytics/docs/iphone/

like image 30
Mike Bretz Avatar answered Oct 03 '22 15:10

Mike Bretz