Analytics
Get actionable, trackable data instantly to drive better decisions and performance.
Overview
Checkout Components allows you to empower your teams with real-time insights from every interaction.
With Checkout Components, you can:
- Gain transparency with native transaction tracking in PXP reports.
- Create custom event tracking to monitor every aspect of the payment journey.
- Use these actionable insights to optimise conversion rates and reduce drop-offs.
- Feed real-time data into your analytics and CRM systems.
Consuming events
To consume an analytics event, use the following snippet:
analyticsEvent(analyticsEvent: any) {
if (analyticsEvent instanceof SecurityCheckAnalyticsEvent) {
console.log("{eventName}", analyticsEvent);
}
}
Events
The following table lists all the available events and describes the structure of each event.
Event name | Structure |
---|---|
| For card-on-file and new card components:
For click-once components:
|
|
|
|
|
| For card-on-file components:
For click-once components:
|
|
|
| For card-on-file components:
For new card components:
|
|
|
|
|
|
|
|
|
|
|
|
|
| For card-on-file and new card components:
For click-once components:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event data
The following table describes the different types of data that can be returned by events.
Name | Description |
---|---|
browserType | The browser type (e.g., Chrome ). |
browserVersion | The browser version. |
cardBrand | The card brand (e.g., Visa or Mastercard ). |
cardStatus | The state of the card (e.g., Expired ). |
componentId | The component's unique identifier. |
componentType | The component type (e.g., NewCard ). |
duration | The total time taken to complete a payment or fill in a CVV. |
editedFields | The fields that were edited. |
elementId | The element's unique identifier. |
endTimestamp | The date and time when the customer starts the payment process. |
errorCode | The error code. |
errorMessage | The description of the error. |
eventName | The name of the event. |
eventType | The type of lifecycle event (e.g., mount or unmount). |
formId | The form's unique identifier. |
interactionType | The type of interaction (e.g., Focus ). |
messageContent | The content of the message. |
operatingSystem | The operating system. |
pageUrl | The URL of the page that the event occurred on. |
sessionId | The session's unique identifier. |
startTimestamp | The date and time when the customer completes the payment process. |
timestamp | The date and time when the event occurred. |
Updated 9 days ago