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

BrowserData

For card-on-file and new card components:

  • eventName
  • timestamp
  • browserType
  • browserVersion
  • operatingSystem
  • pageUrl

For click-once components:

  • eventName
  • timestamp
  • browserType
  • browserVersion
  • operatingSystem
  • pageUrl
  • componentType
  • sessionId

CardBrandType

  • eventName
  • timestamp
  • cardBrand
  • pageUrl

CardDeletion

  • eventName
  • timestamp
  • cardStatus
  • cardBrand
  • pageUrl
  • elementId

CardValidationError

For card-on-file components:

  • eventName
  • timestamp
  • errorType
  • errorMessage
  • componentId

For click-once components:

  • eventName
  • timestamp
  • messageContent
  • elementId
  • pageUrl
  • componentType
  • sessionId

ChangePreselectedCardClick

  • eventName
  • timestamp
  • componentId
  • pageUrl

ComponentAbandonment

For card-on-file components:

  • eventName
  • timestamp
  • formId
  • pageUrl

For new card components:

  • eventName
  • timestamp
  • formId
  • pageUrl
  • componentType

ComponentError

  • eventName
  • timestamp
  • errorCode
  • errorMessage
  • componentId

ComponentInteraction

  • eventName
  • timestamp
  • interactionType
  • componentId
  • pageUrl

ComponentLifecycle


  • eventName
  • timestamp
  • eventType
  • componentId

CustomerClick


  • eventName
  • timestamp
  • elementId
  • pageUrl

CvvFillTime

  • eventName
  • startTimestamp
  • endTimestamp
  • duration
  • pageUrl

DetectClick

  • elementId
  • pageUrl
  • sessionId

DeviceType

For card-on-file and new card components:

  • eventName
  • timestamp
  • deviceType
  • pageUrl

For click-once components:

  • eventName
  • timestamp
  • deviceType
  • pageUrl
  • componentType
  • sessionId

EditCardClick

  • eventName
  • timestamp
  • elementId
  • pageUrl
  • editedFields

ErrorMessageShown

  • eventName
  • timestamp
  • messageContent
  • elementId
  • pageUrl

OneClickPaymentAbandonment

  • timestamp
  • pageUrl
  • componentType
  • sessionId

OneClickPaymentCompletionTime

  • startTimestamp
  • endTimestamp
  • duration
  • pageUrl
  • sessionId

OneClickPaymentConfirmed

  • timestamp
  • pageUrl
  • componentType
  • sessionId

PaymentAbandonment

  • sessionId
  • pageUrl
  • componentType

PayButtonClick

  • eventName
  • timestamp
  • cardBrand
  • cardType
  • componentId
  • pageUrl

PreInitiateAuthentication

  • eventName
  • componentId
  • sessionId
  • transactionId

PreTokenization

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PostAuthentication

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PostAuthorisation

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PostInitiateAuthentication

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PostTokenization

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PreAuthentication

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

PreAuthorisation

  • eventName
  • timestamp
  • componentId
  • sessionId
  • transactionId

SecurityCheck

  • eventName
  • timestamp
  • checkType
  • pageUrl

ValidationMessageShown

  • eventName
  • timestamp
  • messageContent
  • elementId
  • pageUrl

Event data

The following table describes the different types of data that can be returned by events.

NameDescription
browserTypeThe browser type (e.g., Chrome).
browserVersionThe browser version.
cardBrandThe card brand (e.g., Visa or Mastercard).
cardStatusThe state of the card (e.g., Expired).
componentIdThe component's unique identifier.
componentTypeThe component type (e.g., NewCard).
durationThe total time taken to complete a payment or fill in a CVV.
editedFieldsThe fields that were edited.
elementIdThe element's unique identifier.
endTimestampThe date and time when the customer starts the payment process.
errorCodeThe error code.
errorMessageThe description of the error.
eventNameThe name of the event.
eventTypeThe type of lifecycle event (e.g., mount or unmount).
formIdThe form's unique identifier.
interactionTypeThe type of interaction (e.g., Focus).
messageContentThe content of the message.
operatingSystemThe operating system.
pageUrlThe URL of the page that the event occurred on.
sessionIdThe session's unique identifier.
startTimestampThe date and time when the customer completes the payment process.
timestampThe date and time when the event occurred.