Latest 0.4.0
Homepage https://github.com/permagnus/GoogleAnalyticsHelper
License MIT
Platforms ios 7.0, requires ARC
Dependencies Google/Analytics, GBDeviceInfo
Authors

A simple wrapper for the official Google Analytics lib. Write less code.

Setup

The supported installation method is CocoaPods.

pod 'GoogleAnalyticsHelper'

After the pod is installed setup the tracker the first thing when the app starts:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Initialize with Google Analytics tracking id.
    [GAH setupWithTrackerId:@"<#Tracking ID#>"];

    //Or, you can set it up by dragging your GoogleService-Info.plist to your Xcode project and add it to all targets.
    [GAH setupTracker];

    ...The rest of your customizations...
}

Configuration

[GAH setTracksUncaughtExceptions:YES];
[GAH setSyncInterval:60];
[GAH setOptOut:YES];
[GAH setAnonymizeIp:YES];
[GAH setLogLevel:kGAHLogLevelVerbose];

[GAH setTrackBuildInfo:YES];
[GAH setTrackDeviceInfo:YES];

Contribution

Development and issues are tracked here on Github. Pull requests are welcomed.

Contributors

Credits

Inspired and based on BNEasyGoogleAnalytics

License

GoogleAnalyticsHelper is available under the MIT license.

Latest podspec

{
    "name": "GoogleAnalyticsHelper",
    "version": "0.4.0",
    "summary": "A simple wrapper for the official Google Analytics lib.",
    "description": "A simple wrapper for the official Google Analytics lib. Write less code.",
    "homepage": "https://github.com/permagnus/GoogleAnalyticsHelper",
    "license": "MIT",
    "authors": {
        "Magnus Ottosson": "[email protected]"
    },
    "source": {
        "git": "https://github.com/permagnus/GoogleAnalyticsHelper.git",
        "tag": "0.4.0"
    },
    "social_media_url": "https://twitter.com/permagnus",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "GAH/**/*",
    "public_header_files": "GAH/**/*.h",
    "dependencies": {
        "Google/Analytics": [
            "~> 3.0.3"
        ],
        "GBDeviceInfo": [
            "~> 4.1.0"
        ]
    }
}

Pin It on Pinterest

Share This