Class: AnalyticsClass

AnalyticsClass(config)

Provide mobile analytics client functions

Constructor

new AnalyticsClass(config)

Initialize an Analytics class with configuration
Parameters:
Name Type Description
config Configuration of the Analytics
Source:

Methods

configure(config) → {Object}

Parameters:
Name Type Description
config Object The configuration object
Source:
Returns:
- Current configuration
Type
Object

record(name, attributsopt, metricsopt)

Record one analytic event and send it to Pinpoint
Parameters:
Name Type Attributes Description
name String The name of the event
attributs Object <optional>
Attributes of the event
metrics Object <optional>
Event metrics
Source:

recordMonetization(event, attributesopt, metricsopt)

Record one analytic event
Parameters:
Name Type Attributes Description
event Object Event object
attributes Object <optional>
Attributes of the event
metrics Object <optional>
Event metrics
Source:

restart(credentials)

Restart Analytics client with credentials provided
Parameters:
Name Type Description
credentials Object Cognito Credentials
Source:

startSession()

Record session start
Source:

stopSession()

Record session stop
Source: