-
Notifications
You must be signed in to change notification settings - Fork 499
/
Copy pathanalytics.d.ts
executable file
·65 lines (45 loc) · 3.51 KB
/
analytics.d.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
declare class UniversalAnalyticsPlugin {
/** In your 'deviceready' handler, call this to set up your Analytics tracker,
where id is your Google Analytics Mobile App property */
public startTrackerWithId(id:String, dispatchPeriod?:Number, successCallback?:Function, errorCallback?:Function):void;
/** Sets a UserId */
public setUserId(id:String, successCallback?:Function, errorCallback?:Function):void;
/** Sets a setAnonymizeIp */
public setAnonymizeIp(anonymize:Boolean, successCallback?:Function, errorCallback?:Function):void;
/** Sets a setOptOut */
public setOptOut(optout:Boolean, successCallback?:Function, errorCallback?:Function): void;
/** Sets a setAllowIDFACollection */
public setAllowIDFACollection(enable:Boolean, successCallback?:Function, errorCallback?:Function):void;
/** Sets a AppVersion */
public setAppVersion(version:string, successCallback?:Function, errorCallback?:Function):void;
/** Gets a specific variable using this key list https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters */
public getVar(variable:string, successCallback?:Function, errorCallback?:Function):void;
/** Sets a specific variable using this key list https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters */
public setVar(variable:string, value:string, successCallback?:Function, errorCallback?:Function):void;
/** To manually dispatch any data */
public dispatch(successCallback?:Function, errorCallback?:Function);
/** Enables verbose logging */
public debugMode(successCallback?:Function, errorCallback?:Function):void;
/** Track a Custom Metric */
public trackMetric(key:number, value?:number, successCallback?:Function, errorCallback?:Function):void;
/** Track a Screen (PageView) */
public trackView(screen:String, campaignUrl?:string, newSession?:boolean, successCallback?:Function, errorCallback?:Function):void;
/** Add a Custom Dimension */
public addCustomDimension(key:number, value:String, successCallback?:Function, errorCallback?:Function):void;
/** Track an Event */
public trackEvent(category:String, action:String, label?:String, value?:Number, newSession?:boolean, successCallback?:Function, errorCallback?:Function):void;
/** Track an Exception
https://developers.google.com/analytics/devguides/collection/android/v3/exceptions */
public trackException(description:String, fatal:Boolean, successCallback?:Function, errorCallback?:Function):void;
/** Enable/disable automatic reporting of uncaught exceptions */
public enableUncaughtExceptionReporting(enable:Boolean, successCallback?:Function, errorCallback?:Function):void;
/** Track User Timing (App Speed) */
public trackTiming(category:String, intervalInMilliseconds?:Number, name?:String, label?:String, successCallback?:Function, errorCallback?:Function):void;
// Deprecated on 1.9.0 will be removed on next minor version (1.10.0).
/** Add a Transaction (Google Analytics e-Ccommerce Tracking)
https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce */
public addTransaction(transactionId:String, affiliation:String, revenue:Number, tax:Number, shipping:Number, currencyCode:String, successCallback?:Function, errorCallback?:Function):void;
// Deprecated on 1.9.0 will be removed on next minor version (1.10.0).
/** Add a Transaction Item (Ecommerce) */
public addTransactionItem(transactionId:String, name:String, sku:String, category:String, price:Number, quantity:Number, currencyCode:String, successCallback?:Function, errorCallback?:Function):void;
}