Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics subspecs not present

I am using the Google Analytics iOS SDK on a few of the projects I work on. I've been trying to install it on the latest one and have run into the weirdest issue. The issue i'm having is that the libraries and everything builds fine, I have generated a config file for the app I am working on and that looks fine too but as soon as I run the app I get the following message in my console:

Attempted to configure [Identity, Analytics, AdMob, SignIn, AppInvite, CloudMessaging].
2015-07-09 09:02:10.738 [19018:5111252] Successfully configured [].
2015-07-09 09:02:10.738 [19018:5111252] Failed to configure [].
2015-07-09 09:02:10.738 [19018:5111252] Subspecs not present, so not configured [Identity, Analytics, AdMob, SignIn, AppInvite, CloudMessaging].

No matter what I've tried I cannot get Analytics to configure properly :/

Has anyone else run into the problem? I even tried a config file for a different app that was working but that did not work either. Any help would be much appreciated!

I've posted on the Google developer forum here too: https://groups.google.com/forum/?fromgroups#!topic/ga-mobile-app-analytics/aqM-SqNqQLo

Thanks,

Nick

like image 959
Nick Kirsten Avatar asked Jul 09 '15 07:07

Nick Kirsten


People also ask

Why is search query not set in Google Analytics?

If (not set) appears in your Google Ads reports, it means that the website or app you're tracking in the Analytics account is receiving traffic from a Google Ads account that is not linked to the reporting view.

What is not set location in Google Analytics?

Google Analytics uses a third-party datasource to determine your visitors' geographical locations. If our third-party vendor does not have an accurate record of the visitor location, Google Analytics displays a (not set) entry.

How do I disable cookies in Google Analytics?

Disabling Google Analytics Cookies: Simple Solution Disabling cookies with Google Analytics is quite simple: make sure you're using the analytics. js script and set storage to none in the create command (details). That works quite well, but it breaks part of Google Analytics' functionality.


2 Answers

It's OK. You can ignore it. For me I used the code below to implement event tracking:

id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:@"UA-000000-1"];
NSMutableDictionary *event = [[GAIDictionaryBuilder createEventWithCategory:category
                                        action:action
                                         label:nil
                                         value:nil] build];
[tracker send:event];

instead of

id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
like image 118
L.Xing Avatar answered Oct 14 '22 06:10

L.Xing


You should add GoogleService-Info.plist in your app. https://developers.google.com/mobile/add?platform=ios&cntapi=analytics&cnturl=https:%2F%2Fdevelopers.google.com%2Fanalytics%2Fdevguides%2Fcollection%2Fios%2Fv3%2Fapp%3Fconfigured%3Dtrue%23add%2Dconfig&cntlbl=Continue%20Adding%20Analytics

Your tracking id and app bundle should be included in the plist document. Also be sure that IS_ANALYTICS_ENABLED TRUE in the document.

like image 42
Mihriban Minaz Avatar answered Oct 14 '22 06:10

Mihriban Minaz