Latest 1.0.0
Homepage https://github.com/PlugForMac/SimpleGoogleAnalytics
License MIT
Platforms osx 10.11, requires ARC
Dependencies Alamofire
Authors

SimpleGoogleAnalytics is fairly simple way to use Google Analytics on OSX. We use it for the new version of Plug.

Thanks to Coppertio’s AnalyticEverything for most of the system profiling code.

Usage

Setup

let tracker = SimpleGoogleAnalytics.Manager(trackingID: "UA-XXXXXXXX-X", appBundle: NSBundle.mainBundle(), userID: nil)

Pageviews

tracker.trackPageview("Main Window")

Events

tracker.trackEvent(category: "Button", action: "Click", label: "Sign In", value: nil)

Exceptions

tracker.trackException(description: "Exception", fatal: true)

Installation

Carthage

github "PlugForMac/SimpleGoogleAnalytics" ~> VERSION_NUMBER

CocoaPods

Please create an issue if you’d like CocoaPods support.

Latest podspec

{
    "name": "SimpleGoogleAnalytics",
    "version": "1.0.0",
    "summary": "SimpleGoogleAnalytics is fairly simple way to use Google Analytics on OSX.",
    "homepage": "https://github.com/PlugForMac/SimpleGoogleAnalytics",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alex Marchant": "[email protected]"
    },
    "platforms": {
        "osx": "10.11"
    },
    "source": {
        "git": "https://github.com/PlugForMac/SimpleGoogleAnalytics.git",
        "tag": "1.0.0"
    },
    "source_files": "Source/*.swift",
    "requires_arc": true,
    "dependencies": {
        "Alamofire": [
            "~> 4.0.1"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This