menu
Menu
Mobify DevCenter
search_icon_focus

Engagement Engine

progressive-web-sdk/dist/analytics-integrations/connectors/engagement-engine

The engagement-engine module contains the EngagementEngineConnector class, an implementation of the AnalyticsConnector interface, used for connecting to Mobify’s Engagement Engine provider.

class

EngagementEngineConnector

An analytics Connector for Mobify’s analytics backend, the Engagement Engine.

Import
import { EngagementEngineConnector } from 'progressive-web-sdk/dist/analytics-integrations/connectors/engagement-engine

Implements:

AnalyticsConnector

Constructor

Usage
new EngagementEngineConnector(options)
ParameterTypeDescription
optionsObjectEngagement Engine options.
options.projectSlugString(required) The project slug.

Methods

load()

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

Returns:

Promise.<undefined> - Returns a resolved promise when the resources are fully loaded.

See also: loadScript


track(type, data)

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

Returns:

Object - The data that was sent to the analytics provider.

See also: types

ParameterTypeDescription
typeStringThe event type, which can be any String, but Mobify has special support for some built-in types.
dataObjectThe event data, which can be any Object, but Mobify has special support for some built-in types.