Skip to content

samuelbeek/SwiftGoogleAnalyticsHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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

About

Google Analytics Helper for Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages