#237: Added Google Analytics SDK
This commit is contained in:
parent
6be03dde80
commit
aec0152376
23 changed files with 3925 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
//
|
||||
// FirstViewController.m
|
||||
// BasicExample
|
||||
//
|
||||
// Created by Farooq Mela on 4/10/12.
|
||||
// Copyright 2012 Google, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FirstViewController.h"
|
||||
#import "GANTracker.h"
|
||||
|
||||
@implementation FirstViewController
|
||||
|
||||
@synthesize button = button_;
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated {
|
||||
NSLog(@"First View appeared!");
|
||||
[[GANTracker sharedTracker] trackPageview:@"FirstView" withError:nil];
|
||||
[super viewDidAppear:animated];
|
||||
}
|
||||
|
||||
- (IBAction)buttonClicked:(id)sender {
|
||||
NSLog(@"First View button clicked!");
|
||||
[[GANTracker sharedTracker] trackEvent:@"Button"
|
||||
action:@"Click"
|
||||
label:@"First Button"
|
||||
value:-1
|
||||
withError:nil];
|
||||
}
|
||||
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue