Latest 1.1
License MIT
Platforms osx 10.9, requires ARC

Google Analytics SDK for OS X

This is an Objective-C wrapper around Measurement Protocol


Google-Analytics-for-OS-X is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Google-Analytics-for-OS-X"

Alternatively, you can just clone the repo, build GoogleAnalyticsTracker target and use the framework in your project.


    MPAnalyticsConfiguration *configuration = [[MPAnalyticsConfiguration alloc] initWithAnalyticsIdentifier:@"UA-TEST-X"];
    [MPGoogleAnalyticsTracker activateConfiguration:configuration];

Track Event

    [MPGoogleAnalyticsTracker trackEventOfCategory:@"Interaction" action:@"Button Click"
                                             label:@"Track Event Button" value:@0];

Track Timing

    [MPGoogleAnalyticsTracker trackTimingOfCategory:@"Timings" variable:@"App Launch Duration"
                                               time:@100 label:@""];

Debug Window

There is a special debug window included in the framework. It can be used by developers/QA/marketing for testing.



Google-Analytics-for-OS-X is licensed under the MIT License. See the LICENSE file for more information.

Latest podspec

    "name": "Google-Analytics-for-OS-X",
    "version": "1.1",
    "summary": "Google Analytics SDK for OS X.",
    "description": "This is an Objective-C wrapper around Google's Measurement Protocol",
    "homepage": "",
    "screenshots": "",
    "license": "MIT",
    "authors": {
        "Denys Stas": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1"
    "social_media_url": "",
    "platforms": {
        "osx": "10.9"
    "requires_arc": true,
    "source_files": "GoogleAnalyticsTracker/**/*.{h,m}",
    "resources": "GoogleAnalyticsTracker/**/*.xib",
    "public_header_files": "GoogleAnalyticsTracker/**/*.h",
    "module_name": "GoogleAnalyticsTracker",
    "header_dir": "GoogleAnalyticsTracker"

Pin It on Pinterest

Share This