Interface UniversalAnalytics

Index

Call signatures

Interfaces

Call signatures

(accountID: string, uuid?: string, opts?: Object): Client

Parameters

  • accountID: string
  • uuid?: string optional
  • opts?: Object optional

Returns

Client

Interfaces

Client: Client

public debug(): Client

Returns

Client

public event(category: string, action: string): Client

Parameters

  • category: string
  • action: string

Returns

Client

public event(category: string, action: string, callback?: (err: any) => void)

Parameters

  • category: string
  • action: string
  • callback?: (err: any) => void optional

public event(category: string, action: string, label: string): Client

Parameters

  • category: string
  • action: string
  • label: string

Returns

Client

public event(category: string, action: string, label: string, callback?: (err: any) => void)

Parameters

  • category: string
  • action: string
  • label: string
  • callback?: (err: any) => void optional

public event(category: string, action: string, label: string, value: any): Client

Parameters

  • category: string
  • action: string
  • label: string
  • value: any

Returns

Client

public event(category: string, action: string, label: string, value: any, callback?: (err: any) => void)

Parameters

  • category: string
  • action: string
  • label: string
  • value: any
  • callback?: (err: any) => void optional

public event(category: string, action: string, label: string, value: any, params: Object, callback?: (err: any) => void)

Parameters

  • category: string
  • action: string
  • label: string
  • value: any
  • params: Object
  • callback?: (err: any) => void optional

public event(params: Object): Client

Parameters

  • params: Object

Returns

Client

public event(params: Object, callback: (err: any) => void)

Parameters

  • params: Object
  • callback: (err: any) => void

public exception(description: string): Client

Parameters

  • description: string

Returns

Client

public exception(description: string, callback: (err: any) => void)

Parameters

  • description: string
  • callback: (err: any) => void

public exception(description: string, fatal: boolean): Client

Parameters

  • description: string
  • fatal: boolean

Returns

Client

public exception(description: string, fatal: boolean, callback: (err: any) => void)

Parameters

  • description: string
  • fatal: boolean
  • callback: (err: any) => void

public exception(params: Object): Client

Parameters

  • params: Object

Returns

Client

public exception(params: Object, callback: (err: any) => void)

Parameters

  • params: Object
  • callback: (err: any) => void

public item(price: number): Client

Parameters

  • price: number

Returns

Client

public item(price: number, callback: (err: any) => void)

Parameters

  • price: number
  • callback: (err: any) => void

public item(price: number, quantity: number): Client

Parameters

  • price: number
  • quantity: number

Returns

Client

public item(price: number, quantity: number, callback: (err: any) => void)

Parameters

  • price: number
  • quantity: number
  • callback: (err: any) => void

public item(price: number, quantity: number, sku: number): Client

Parameters

  • price: number
  • quantity: number
  • sku: number

Returns

Client

public item(price: number, quantity: number, sku: number, callback: (err: any) => void)

Parameters

  • price: number
  • quantity: number
  • sku: number
  • callback: (err: any) => void

public item(price: number, quantity: number, sku: number, name: string): Client

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string

Returns

Client

public item(price: number, quantity: number, sku: number, name: string, callback: (err: any) => void)

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string
  • callback: (err: any) => void

public item(price: number, quantity: number, sku: number, name: string, variation: string): Client

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string
  • variation: string

Returns

Client

public item(price: number, quantity: number, sku: number, name: string, variation: string, callback: (err: any) => void)

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string
  • variation: string
  • callback: (err: any) => void

public item(price: number, quantity: number, sku: number, name: string, variation: string, params: Object): Client

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string
  • variation: string
  • params: Object

Returns

Client

public item(price: number, quantity: number, sku: number, name: string, variation: string, params: Object, callback: (err: any) => void)

Parameters

  • price: number
  • quantity: number
  • sku: number
  • name: string
  • variation: string
  • params: Object
  • callback: (err: any) => void

public item(params: Object): Client

Parameters

  • params: Object

Returns

Client

public item(params: Object, callback: (err: any) => void)

Parameters

  • params: Object
  • callback: (err: any) => void

public middleware(accountID: string, options?: any): any

Parameters

  • accountID: string
  • options?: any optional

Returns

any

public pageview(path: string): Client

Parameters

  • path: string

Returns

Client

public pageview(path: string, callback?: (err: any) => void)

Parameters

  • path: string
  • callback?: (err: any) => void optional

public pageview(params: Object): Client

Parameters

  • params: Object

Returns

Client

public pageview(params: Object, callback?: (err: any) => void)

Parameters

  • params: Object
  • callback?: (err: any) => void optional

public pageview(path: string, hostname: string): Client

Parameters

  • path: string
  • hostname: string

Returns

Client

public pageview(path: string, hostname: string, callback?: (err: any) => void)

Parameters

  • path: string
  • hostname: string
  • callback?: (err: any) => void optional

public pageview(path: string, title: string, hostname: string): Client

Parameters

  • path: string
  • title: string
  • hostname: string

Returns

Client

public pageview(path: string, title: string, hostname: string, callback?: (err: any) => void)

Parameters

  • path: string
  • title: string
  • hostname: string
  • callback?: (err: any) => void optional

public send()

public timing(category: string): Client

Parameters

  • category: string

Returns

Client

public timing(category: string, callback: (err: any) => void)

Parameters

  • category: string
  • callback: (err: any) => void

public timing(category: string, variable: string): Client

Parameters

  • category: string
  • variable: string

Returns

Client

public timing(category: string, variable: string, callback: (err: any) => void)

Parameters

  • category: string
  • variable: string
  • callback: (err: any) => void

public timing(category: string, variable: string, time: number): Client

Parameters

  • category: string
  • variable: string
  • time: number

Returns

Client

public timing(category: string, variable: string, time: number, callback: (err: any) => void)

Parameters

  • category: string
  • variable: string
  • time: number
  • callback: (err: any) => void

public timing(category: string, variable: string, time: number, label: string): Client

Parameters

  • category: string
  • variable: string
  • time: number
  • label: string

Returns

Client

public timing(category: string, variable: string, time: number, label: string, callback: (err: any) => void)

Parameters

  • category: string
  • variable: string
  • time: number
  • label: string
  • callback: (err: any) => void

public timing(params: Object): Client

Parameters

  • params: Object

Returns

Client

public timing(params: Object, callback: (err: any) => void)

Parameters

  • params: Object
  • callback: (err: any) => void

public transaction(id: string): Client

Parameters

  • id: string

Returns

Client

public transaction(id: string, callback: (err: any) => void)

Parameters

  • id: string
  • callback: (err: any) => void

public transaction(id: string, revenue: number): Client

Parameters

  • id: string
  • revenue: number

Returns

Client

public transaction(id: string, revenue: number, callback: (err: any) => void)

Parameters

  • id: string
  • revenue: number
  • callback: (err: any) => void

public transaction(id: string, revenue: number, shipping: number): Client

Parameters

  • id: string
  • revenue: number
  • shipping: number

Returns

Client

public transaction(id: string, revenue: number, shipping: number, callback: (err: any) => void)

Parameters

  • id: string
  • revenue: number
  • shipping: number
  • callback: (err: any) => void

public transaction(id: string, revenue: number, shipping: number, taxping: number): Client

Parameters

  • id: string
  • revenue: number
  • shipping: number
  • taxping: number

Returns

Client

public transaction(id: string, revenue: number, shipping: number, taxping: number, callback: (err: any) => void)

Parameters

  • id: string
  • revenue: number
  • shipping: number
  • taxping: number
  • callback: (err: any) => void

public transaction(id: string, revenue: number, shipping: number, taxping: number, affiliation: string): Client

Parameters

  • id: string
  • revenue: number
  • shipping: number
  • taxping: number
  • affiliation: string

Returns

Client

public transaction(id: string, revenue: number, shipping: number, taxping: number, affiliation: string, callback: (err: any) => void)

Parameters

  • id: string
  • revenue: number
  • shipping: number
  • taxping: number
  • affiliation: string
  • callback: (err: any) => void

public transaction(params: Object): Client

Parameters

  • params: Object

Returns

Client

public transaction(params: Object, callback: (err: any) => void)

Parameters

  • params: Object
  • callback: (err: any) => void