menu
Menu
Mobify DevCenter
search_icon_focus

Interface

progressive-web-sdk/dist/analytics-integrations/interface

The interface module contains the AnalyticsConnector interface that is used to implement a connector for an analytics provider.

interface

AnalyticsConnector

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.