Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

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

OptionRequiredTypeDescription
inputtrue

Throws

  • service:UpdateEndpointException - Thrown when the underlying Pinpoint service returns an error.
  • validation:AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.

disable

Disables the Analytics category.

enable

Enables the Analytics category to permit the transmission of events.

flushEvents

Flushes all buffered Pinpoint events to the service.

identifyUser

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

OptionRequiredTypeDescription
paramstrue
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

OptionRequiredTypeDescription
inputtrue

Throws

  • validation:AnalyticsValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect.

Link Color Legend

Interface
Reference
Other