Embedding API Reference / Modules / exposed-api / <internal> / default
# Class: default
exposed-api.<internal>.default
# Table of contents
# Constructors
# Properties
# Methods
- addCallback
- cleanUpHistory
- giveConsent
- removeUiCallback
- setDimension
- setDimensions
- trackContentError
- trackError
- trackEvent
- trackNoActivePackage
- trackTiming
- trackWrongDomain
# Constructors
# constructor
• new default(configuratorId
, useTracking?
): default
# Parameters
Name | Type | Default value |
---|---|---|
configuratorId | string | undefined |
useTracking | boolean | true |
# Returns
# Defined in
src/common/utils/google-analytics.ts:124 (opens new window)
# Properties
# history
• history: IArguments
[] = []
# Defined in
src/common/utils/google-analytics.ts:102 (opens new window)
# Methods
# addCallback
▸ addCallback(listener
): void
# Parameters
Name | Type |
---|---|
listener | GoogleAnalyticsCallback |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:311 (opens new window)
# cleanUpHistory
▸ cleanUpHistory(): void
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:326 (opens new window)
# giveConsent
▸ giveConsent(): void
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:219 (opens new window)
# removeUiCallback
▸ removeUiCallback(listener
): void
# Parameters
Name | Type |
---|---|
listener | GoogleAnalyticsCallback |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:318 (opens new window)
# setDimension
▸ setDimension(dimension
, value
): void
# Parameters
Name | Type |
---|---|
dimension | string |
value | any |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:270 (opens new window)
# setDimensions
▸ setDimensions(dimensions
): void
# Parameters
Name | Type |
---|---|
dimensions | Object |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:275 (opens new window)
# trackContentError
▸ trackContentError(message
): void
# Parameters
Name | Type |
---|---|
message | string |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:307 (opens new window)
# trackError
▸ trackError(message
, specialErrorName?
): void
# Parameters
Name | Type | Default value |
---|---|---|
message | string | undefined |
specialErrorName | Nullable <string > | null |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:284 (opens new window)
# trackEvent
▸ trackEvent(action
, category
, label
, value?
, fieldsObject?
): void
# Parameters
Name | Type | Default value |
---|---|---|
action | string | undefined |
category | GA_CATEGORY | undefined |
label | string | undefined |
value | Nullable <number > | null |
fieldsObject | object | {} |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:234 (opens new window)
# trackNoActivePackage
▸ trackNoActivePackage(): void
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:334 (opens new window)
# trackTiming
▸ trackTiming(category
, label
, value
, fieldsObject?
): void
# Parameters
Name | Type |
---|---|
category | GA_CATEGORY |
label | any |
value | number |
fieldsObject | object |
# Returns
void
# Defined in
src/common/utils/google-analytics.ts:252 (opens new window)
# trackWrongDomain
▸ trackWrongDomain(): void
# Returns
void