Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samuelbeek/swiftgoogleanalyticshelper

Google Analytics Helper for Swift
https://github.com/samuelbeek/swiftgoogleanalyticshelper

Last synced: 4 days ago
JSON representation

Google Analytics Helper for Swift

Awesome Lists containing this project

README

        

# SwiftGoogleAnalyticsHelper
Google Analytics Helper for Swift

## Installation
Make sure you've added Google Analytics to your project, use the installation information they providde.

## Usage

#### Track Screen
add this to the viewDidAppear() of a ViewController you'd like to track

trackScreen(name: "your screen");

#### Track Event
add this within the function of your event.

trackEvent("your category", action: "your action", label: "your label", value: nil)

#### Set Tracked User
add this to your application didFinishLaunchingWithOptions

setTrackedUserID("your id")

## License
You can use this for what ever you want.

follow me on [twitter]("twitter.com/samuelbeek")