TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2016 |
SPMSupports SPM | ✗ |
Maintained by Appanalytics Development Team.
To run the example project:
Clone the repo
Run pod install
from the Example/RealAppTest
directory first
Run RealAppTest.xcworkspace
Enable http domains exception:
info.plist >>
Add App Transport Security Settings
++>> Allow Arbitrary Loads = YES
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!
Insert following line to your ViewController
import AppAnalyticsSwift
Initialize AppAnalyticsSwift
class and call submitCampaing
method:
let app = AppAnalyticsSwift(accessKey = "YOUR_ACCESS_KEY")
app.submitCampain()
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)
AppAnalytics Develpment Team, [email protected]
AppAnalyticsSwift is available under the MIT license. See the LICENSE file for more info.