forked from biocross/VITacademics-v2-for-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GAITracker.h
53 lines (41 loc) · 1.37 KB
/
GAITracker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*!
@header GAITracker.h
@abstract Google Analytics iOS SDK Tracker Header
@version 3.0
@copyright Copyright 2013 Google Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
/*!
Google Analytics tracking interface. Obtain instances of this interface from
[GAI trackerWithTrackingId:] to track screens, events, transactions, timing,
and exceptions. The implementation of this interface is thread-safe, and no
calls are expected to block or take a long time. All network and disk activity
will take place in the background.
*/
@protocol GAITracker<NSObject>
/*!
Name of this tracker.
*/
@property(nonatomic, readonly) NSString *name;
/*!
Set a tracking parameter.
@param parameterName The parameter name.
@param value The value to set for the parameter. If this is nil, the
value for the parameter will be cleared.
*/
- (void)set:(NSString *)parameterName
value:(NSString *)value;
/*!
Get a tracking parameter.
@param parameterName The parameter name.
@returns The parameter value, or nil if no value for the given parameter is
set.
*/
- (NSString *)get:(NSString *)parameterName;
/*!
Queue tracking information with the given parameter values.
@param parameters A map from parameter names to parameter values which will be
set just for this piece of tracking information, or nil for none.
*/
- (void)send:(NSDictionary *)parameters;
@end