Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 707 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 707 Bytes

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