Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

GAIFields Class Reference

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.