From cc8e24461c625400143677956bdffb9268d8050b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 21 Sep 2017 15:50:05 +0200 Subject: analytics plugin --- .../ios/GAITrackedViewController.h | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAITrackedViewController.h (limited to 'StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAITrackedViewController.h') diff --git a/StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAITrackedViewController.h b/StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAITrackedViewController.h new file mode 100644 index 00000000..de19def0 --- /dev/null +++ b/StoneIsland/plugins/cordova-plugin-google-analytics/ios/GAITrackedViewController.h @@ -0,0 +1,33 @@ +/*! + @header GAITrackedViewController.h + @abstract Google Analytics for iOS Tracked View Controller Header + @copyright Copyright 2012 Google Inc. All rights reserved. + */ + +#import +#import + +@protocol GAITracker; + +/*! + 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. + */ +@interface GAITrackedViewController : UIViewController + +/*! + The tracker on which view tracking calls are be made, or `nil`, in which case + [GAI defaultTracker] will be used. + */ +@property(nonatomic, assign) id tracker; +/*! + The screen name, for purposes of Google Analytics tracking. If this is `nil`, + no tracking calls will be made. + */ +@property(nonatomic, copy) NSString *screenName; + +@end -- cgit v1.2.3-70-g09d2