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

GAIFields Class Reference

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

Overview

This class provides several fields and methods useful as wire format parameter names.

The methods are used for wire format parameter names that are indexed.

Inherits NSObject.

Class Methods

(NSString *) + contentGroupForIndex:
 Generates the correct parameter name for a content group with an index. More...
 
(NSString *) + customDimensionForIndex:
 Generates the correct parameter name for a custon dimension with an index. More...
 
(NSString *) + customMetricForIndex:
 Generates the correct parameter name for a custom metric with an index. More...
 

Method Documentation

+ (NSString *) contentGroupForIndex: (NSUInteger)  index

Generates the correct parameter name for a content group with an index.

Parameters
indexthe index of the content group.
Returns
an NSString representing the content group parameter for the index.
+ (NSString *) customDimensionForIndex: (NSUInteger)  index

Generates the correct parameter name for a custon dimension with an index.

Parameters
indexthe index of the custom dimension.
Returns
an NSString representing the custom dimension parameter for the index.
+ (NSString *) customMetricForIndex: (NSUInteger)  index

Generates the correct parameter name for a custom metric with an index.

Parameters
indexthe index of the custom metric.
Returns
an NSString representing the custom metric parameter for the index.