Skip to content

frootloops/Analytics

Repository files navigation

Analytics

Setup

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {    
    AnalyticsManager.providers.append(FirebaseAnalyticsManager())
    AnalyticsManager.providers.append(FacebookAnalyticsManager())
    AnalyticsManager.providers.append(LogAnalyticsManager())
    AnalyticsManager.providers.append(AmplitudeAnalyticsManager(apiKey: amplitudeKey))
       
    return true
}

How to use:

AnalyticsManager.log(event: .sendFeedbackSuccess) // simple event
AnalyticsManager.log(event: .findFriendsInvite(action: action, source: source)) // event with params, type safe!
AnalyticsManager.log(event: .leaderboardConsoleWillConnectPhonebook)
AnalyticsManager.log(event: .leaderboardConsoleDidConnectPhonebook(contacts: follow.count))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages