Skip to content

anilgoktas/FlurryEventLogger

Repository files navigation

FlurryEventLogger

Event logging wrapper for Flurry iOS SDK.

Example

enum FlurryEvent: String {
    case Theatres
    case Theatre
    case Plays
    case Play
}

// MARK: - FlurryEventType

extension FlurryEvent: FlurryEventType {
    var eventName: String { return rawValue }
    
    var parameterKeys: [String]? {
        switch self {
        case .Play: return ["PlayID"]
        case .Theatre: return ["TheatreID"]
        default: return nil
        }
    }
}
Flurry.log(event: FlurryEvent.Theatre, parameterValues: [theatre.theatreID])
// is equivalent to this:
Flurry.logEvent("Theatre", parameters: ["TheatreID": theatre.theatreID])

Installation

FlurryEventLogger is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FlurryEventLogger', :git => 'https://github.com/anilgoktas/FlurryEventLogger.git'

Author

Anıl Göktaş, [email protected]

License

FlurryEventLogger is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published