Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics Warnings on iOS

Just recently, I started getting new console warnings from the Google Analytics static library for iOS. I only following get the following logs on an actual device, not in the simulator.

CoreData: warning: Unable to load class named 'GAIProperty' for entity 'GAIProperty'. Class not found, using default NSManagedObject instead. CoreData: warning: Unable to load class named 'GAIHit' for entity 'GAIHit'. Class not found, using default NSManagedObject instead. idfa class missing, won't collect idfa

Any ideas what those could mean, why they happen and how to possible resolve the issues?

like image 602
Christian Schnorr Avatar asked Aug 03 '14 09:08

Christian Schnorr


People also ask

Does Google Analytics work on iOS?

Stay organized with collections Save and categorize content based on your preferences. Use our iOS sample app to see how Analytics works, or add Analytics to your existing app.

Can I set up alerts in Google Analytics?

Create custom alertsSign in to Google Analytics. Navigate to your view. Open Reports. Click CUSTOMIZATION > Custom Alerts.

Does iOS 14 block Google Analytics?

As more information has surfaced, it appears that Intelligent Tracking Prevention (ITP) in Safari 14 is not completely blocking Google Analytics. Instead, it's blocking third-party tracking cookies and cross-site scripting requests, which limits portions of Google Analytics.

Is Google Analytics affected by iOS update?

October 5, 2021. 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

The documentation for the latest analytics SDK isn't particularly clear.

If you add the -ObjC flag in "Other linker flags" within your XCode project, it'll fix this issue.

like image 177
alistair Avatar answered Nov 16 '22 02:11

alistair


According to this link, it's a problem with the SDK but this does not affect the normal operation of the library. The warnings will be fixed in future updates.

like image 23
MontiRabbit Avatar answered Nov 16 '22 02:11

MontiRabbit