UIViewControllers that adopt the
FLSKAutoGAI
protocol will automatically be tracked in GoogleAnalytics. The ViewController's class name will be used as tracked screen name per default. Implement the method
-(NSString*)screenName {
return @"Alternative Tracked Screen Name";
}
to provide another tracked screen name.
FLSKAutoGAI is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FLSKAutoGAI"
This pod will also install 'GoogleAnalytics-iOS-SDK 3.0'
FLSKAutoGAI is available under the MIT license. See the LICENSE file for more info.