add userId to GaOptions

This commit is contained in:
bglee
2017-04-08 22:43:56 +09:00
parent ba7f053975
commit 428ec7e4f6

View File

@@ -11,7 +11,7 @@ export interface EventArgs {
nonInteraction?: boolean;
}
interface GaOptions {
export interface GaOptions {
name?: string;
clientId?: string;
sampleRate?: number;
@@ -24,6 +24,7 @@ interface GaOptions {
legacyCookieDomain?: string;
legacyHistoryImport?: boolean;
allowLinker?: boolean;
userId?: string;
}
export interface InitializeOptions {
@@ -36,19 +37,19 @@ export interface FieldsObject {
[i: string]: any;
}
interface TimingArgs {
export interface TimingArgs {
category: string;
variable: string;
value: number;
label?: string;
}
interface Plugin {
export interface Plugin {
require(name: string, options: any): void;
execute(pluginName: string, action: string, actionTypeOrPayload: string|Object, payload?: Object): void;
}
interface OutboundLinkArgs {
export interface OutboundLinkArgs {
label: string;
}