Skip to content

metarouterio/analytics-ios

 
 

Repository files navigation

Metarouter Analytics

analytics-ios is an iOS client for Metarouter.

Special thanks to Tony Xiao, Lee Hasiuk and Cristian Bica for their contributions to the library!

You can't fix what you can't measure

Analytics helps you measure your users, product, and business. It unlocks insights into your app's funnel, core business metrics, and whether you have product-market fit.

How to get started

Metarouter collects analytics data and allows you to send it to more than 250 apps (such as Google Analytics, Mixpanel, Optimizely, Facebook Ads, Slack, Sentry) just by flipping a switch. You only need one Metarouter code snippet, and you can turn integrations on and off at will, with no additional code. Sign up with Metarouter today.

Why?

  1. Power all your analytics apps with the same data. Instead of writing code to integrate all of your tools individually, send data to Metarouter, once.

  2. Install tracking for the last time. We're the last integration you'll ever need to write. You only need to instrument Metarouter once. Reduce all of your tracking code and advertising tags into a single set of API calls.

  3. Send data from anywhere. Send Metarouter data from any device, and we'll transform and send it on to any tool.

  4. Query your data in SQL. Slice, dice, and analyze your data in detail with Metarouter SQL. We'll transform and load your customer behavioral data directly from your apps into Amazon Redshift, Google BigQuery, or Postgres. Save weeks of engineering time by not having to invent your own data warehouse and ETL pipeline.

    For example, you can capture data on any app:

    analytics.track('Order Completed', { price: 99.84 })

    Then, query the resulting data in SQL:

    select * from app.order_completed
    order by price desc

Installation

Analytics is available through CocoaPods and Carthage.

CocoaPods

pod "MetarouterAnalytics", "~> 4.1.0"

Note: Metarouter strongly recommends that you use a dynamic framework to manage your project dependencies. If you prefer static libraries, you can add use_modular_headers! or use_frameworks! :linkage => :static in your Podfile. However, you must then manually update all of your dependencies on a regular schedule.

Carthage

github "metarouter/analytics-ios"

Swift Package Manager (SPM)

To add analytics-ios via Swift Package Mangaer, it is possible to add it one of two ways:

Xcode

Xcode Add SPM Package

ChoosePackageRepository

ChoosePackageOptions

Package.swift

import PackageDescription

let package = Package(
    name: "MyApplication",
    dependencies: [
        // Add a package containing Analytics as the name along with the git url
        .package(
            name: "Metarouter",
            url: "[email protected]:metarouter/analytics-ios.git"
        )
    ],
    targets: [
        name: "MyApplication",
        dependencies: ["Metarouter"] // Add Analytics as a dependency of your application
    ]
)

Note: Metarouter recommends that you use Xcode to add your package.

Quickstart

Refer to the Quickstart documentation at https://docs.metarouter.io/docs/quick-start-guide.

Documentation

More detailed documentation is available at https://docs.metarouter.io/docs/analyticsjs-for-ios.

About

The hassle-free way to integrate analytics into any iOS application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 75.2%
  • Swift 23.3%
  • Other 1.5%