This document describes a legacy version of the iOS SDK. If your new to Analyitcs, use the latest SDK. Learn more

GAITrackedViewController Class Reference

Stay organized with collections Save and categorize content based on your preferences.

Overview

Extends UIViewController to generate Google Analytics screenview calls whenever the view appears; this is done by overriding the viewDidAppear: method.

The screen name must be set for any tracking calls to be made.

By default, this will use [GAI defaultTracker] for tracking calls, but one can override this by setting the tracker property.

Inherits UIViewController.

Properties

id< GAITrackertracker
 The tracker on which view tracking calls are be made, or nil, in which case [GAI defaultTracker] will be used. More...
 
NSString * screenName
 The screen name, for purposes of Google Analytics tracking. More...
 

Property Documentation

- (id<GAITracker>) tracker
(readwrite, nonatomic, assign)

The tracker on which view tracking calls are be made, or nil, in which case [GAI defaultTracker] will be used.

- (NSString*) screenName
(readwrite, nonatomic, copy)

The screen name, for purposes of Google Analytics tracking.

If this is nil, no tracking calls will be made.