Skip to content
Google Analytics SDK for OS X
Branch: master
Clone or download
Latest commit 4ee516d Nov 1, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
GoogleAnalyticsSample Initial project commit. Dec 15, 2015
GoogleAnalyticsTracker.xcodeproj Initial project commit. Dec 15, 2015
GoogleAnalyticsTracker Release 1.1. Oct 10, 2016
.gitignore Initial project commit. Dec 15, 2015
Google-Analytics-for-OS-X.podspec Release 1.1. Oct 10, 2016
LICENSE Initial commit Dec 15, 2015
README.md OS X -> macOS Nov 1, 2017
screenshot.png Add README.md Dec 15, 2015

README.md

Google-Analytics-for-OS-X

Google Analytics SDK for mac OS

This is an Objective-C wrapper around Measurement Protocol

Installation

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.

Usage

    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.

ScreenShot

#License

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

You can’t perform that action at this time.