API Reference
configureAutoTrack
Configures automatic event tracking for Pinpoint. This API will automatically transmit an analytic event when
configured events are detected within your application. This can include: DOM element events (via the 
event
tracker), session events (via the session tracker), and page view events (via the pageView tracker).Parameters
| Option | Required | Type | Description | 
|---|---|---|---|
| input | true | 
Throws
- service:UpdateEndpointException - Thrown when the underlying Pinpoint service returns an error.
- validation:AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.
Returns
voididentifyUser
Sends information about a user to Pinpoint. Sending user information allows you to associate a user to their user
profile and activities or actions in your application. Activity can be tracked across devices & platforms by using
the same 
userId.Parameters
| Option | Required | Type | Description | 
|---|---|---|---|
| params | true | The input object used to construct requests sent to Pinpoint's UpdateEndpoint
 API. | 
Throws
- service:UpdateEndpointException - Thrown when the underlying Pinpoint service returns an error.
- validation:AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.
Returns
Promise<void>record
Records an Analytic event to Pinpoint. Events will be buffered and periodically sent to Pinpoint.
Parameters
| Option | Required | Type | Description | 
|---|---|---|---|
| input | true | 
Throws
- validation:AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.
Returns
voidLink Color Legend
Interface
Reference
Other