Skip to content

textnow/Analytics-iOS

Repository files navigation

AnalyticLayer

Easily create a layer between your app and the analytic tools that you use.

Analytics is essential for the continued improvement of apps. There are many tools to help you gather information, but they are constantly evolving. To handle that constant development, we have created this analytic framework to prevent horizontal change across your app. If you are looking for a simple, modular, testable, and mockable layer for your analytic tools that minimizes impact on the rest of your app, you've come to right place.

Features

✅ Event trackers wrapping any number of analytic tools.

✅ Analytic events that are responsible for knowing the target tool(s) to track to.

✅ Analytic parameter types that are client defined to conform to any analytic tool.

✅ Testable and mockable analytic core.

Installation

CocoaPods

CocoaPods is a popular package manager for iOS projects. To get started using CocoaPods in your project please visit their website. To integrate AnalyticLayer into your project using CocoaPods, specify it in your Podfile:

pod 'AnalyticLayer'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile:

github "textnow/Analytics-iOS"

Usage and Implementation

Please see the Wiki page Usage and Implementation.

More Information

The Talk

I have given a talk on the building of this framework and the background of how TextNow uses this framework. At the time of this video the framework was not released and has gone through some change since but much of the structure and usage still remains the same to date. Please feel free to check the video out.

Building an Analytic Framework Video

Communication

  1. If you have used this and extended it please create a pull request with your changes.
  2. If you find a bug please report it under the issues in GitHub.
  3. If you used this framework and have comments or questions please reach out to me directly at quintonpryce@gmail.com.

License

AnalyticLayer is released under the MIT license. See LICENSE for details.