Automattic-Tracks-iOS
Client library for tracking user events for later analysis
Introduction
Tracks for iOS is a client library used to help track events inside of an application. This project solely is responsible for collecting the events, storing them locally, and on a schedule send them out to the Automattic servers. Realistically this library is only useful for Automattic-based projects but the idea is to share what we've made.
Installation
You can install the Tracks component in your app via CocoaPods:
pod 'Automattic-Tracks-iOS', :git => 'git@github.com:Automattic/Automattic-Tracks-iOS.git', :branch => 'develop'
- Create an instance of
TracksService
. - Set an appropriate event name prefix using the propert
eventNamePrefix
. As an Automattician you will know how to get a prefix whitelisted. - Keep this instance in a stable place and only instantiate one for your application.
Usage
Check out the TracksDemo project for more information on how to track events.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
Original source: https://github.com/Automattic/Automattic-Tracks-iOS
Created by initially: Aaron Douglas @astralbodies
License
Automattic-Tracks-iOS is available under the MIT license. See the LICENSE file for more info.