Latest 1.2.0
Homepage https://github.com/Leandros/TinyAnalytics
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Authors

A lightweight library for Google Analytics.
TinyAnalytics has been started, because the iOS Google Analytics SDK currently doesn’t support the ARM64 architecture, used in the new A7 processor (used in the new iPhone 5s, iPad Air and iPad Mini Retina).

Installation

CocoaPods (recommended!)

Just add

pod 'TinyAnalytics'

to your Podfile.

Classic Way

If you prefer the classic way, add the content of the TinyAnalytics directory to your project.
This library depends on AFNetworking (Version 2.0+), make sure to add it to your dependancies as well.

Usage

Register the TinyAnalytics library with your Google Analytics ID in your didFinishLaunchingWithOptions: method of your UIApplicationDelegate.

#import "TinyAnalytics.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    // Your custom init code comes here.
    [[TinyAnalytics sharedInstance] analyticsWithTrackingID:@"UA-xxxxxxxx-x"];

    [self.window makeKeyAndVisible];
    return YES;
}

When you want to track a screen, just call the TinyAnalytics singleton method trackScreenView.

#import "TinyAnalytics.h"

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];

    [TinyAnalytics sharedInstance] trackScreenView:@"MyViewController"];
}

Contact

This library was written by Arvid Gerstmann.
You can find me on:

License

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

Latest podspec

{
    "name": "TinyAnalytics",
    "version": "1.2.0",
    "license": "MIT",
    "summary": "A lightweight library for Google Analytics.",
    "homepage": "https://github.com/Leandros/TinyAnalytics",
    "authors": {
        "Arvid Gerstmann": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Leandros/TinyAnalytics.git",
        "tag": "1.2.0"
    },
    "source_files": "TinyAnalytics/*.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    },
    "dependencies": {
        "AFNetworking": [
            "~> 2.0"
        ]
    }
}

Pin It on Pinterest

Share This