AppAnalyticsSwift 0.1.2

AppAnalyticsSwift 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jul 2016
SPMSupports SPM

Maintained by Appanalytics Development Team.



  • By
  • AppAnalytics

AppAnalyticsSwift

Example

To run the example project:

  1. Clone the repo

  2. Run pod install from the Example/RealAppTest directory first

  3. Run RealAppTest.xcworkspace

Requirements

Enable http domains exception:

info.plist >>

Add App Transport Security Settings ++>> Allow Arbitrary Loads = YES

Installation

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

pod "AppAnalyticsSwift"

Run pod install from terminal

Run YOUR_APP_NAME.xcworkspace

Installation Completed!

How to use

Insert following line to your ViewController

import AppAnalyticsSwift

Initialize AppAnalyticsSwift class and call submitCampaing method:

let app = AppAnalyticsSwift(accessKey = "YOUR_ACCESS_KEY")

app.submitCampain()

Events

To add event with value just call addEvent method:

app.addEvent(eventName: "StartMainController", eventValue: NSDate())

To add event without value call addEvent method add put nil for value :

app.addEvent(eventName: "StartMainController", eventValue: nil)

Author

AppAnalytics Develpment Team, [email protected]

License

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