Class: MobifyGoogleAnalyticsConnector

connectors/mobify-ga.MobifyGoogleAnalyticsConnector(options, options)

A Connector for Mobify's Google Analytics.

Constructor

new MobifyGoogleAnalyticsConnector(options, options)

Parameters:
Name Type Description
options Object
options Object

Mobify Google Analytics options.

Properties
Name Type Description
trackerName String

(default: 'mobifyTracker') Mobify Google Analytics Tracker name.GoogleAnalyticsConnector.GoogleAnalyticsConnector.GoogleAnalyticsConnector.

trackerId String

(required) Mobify Google Analytics Tracker id.

ecommerceLibrary String

The name of the Google Analytics ecommerce library to load.

Implements:

Extends

Methods

load() → {Promise.<undefined>}

Loads necessary resources and performs any additional set up required to create the connection to the Analytics Provider.

Overrides:
Implements:
See:
Returns:

Returns a resolved promise when the resources are fully loaded.

Type
Promise.<undefined>

loadEcommerceLibrary() → {undefined}

Ecommerce library initialization.

Overrides:
Returns:
Type
undefined

setupSplitTest() → {undefined}

Spit test set up.

Overrides:
Returns:
Type
undefined

track(type, data) → {Object}

Track an analytics event and send it to an analytics provider.

Parameters:
Name Type Description
type String

The event type, which can be any String, but Mobify has special support for some built-in types.

data Object

The event data, which can be any Object, but Mobify has special support for some built-in types.

Overrides:
Implements:
See:
  • module:types for more on Mobify's built-in analytics event types.
Returns:

The data that was sent to the analytics provider.

Type
Object