Payment Links allow you to set up analytics tools to track your customer’s journey, from arriving at the checkout page to completing a payment. These tools include Google Analytics and Facebook Pixel, and you can track various events for better insights into customer behavior.
Trackable events and their triggers
Event Name | Payload | Trigger |
---|---|---|
xendit_begin_checkout | None | When the checkout page loads. |
xendit_add_payment_info | Channel name | When a customer clicks or selects a payment channel. (Note: QRIS channel selection is not tracked.) |
xendit_checkout_progress | None |
|
xendit_purchase | Currency, amount | When the payment success page is displayed. |
xendit_view_item | None | When a customer clicks the View More button on the V1 checkout web. |
Google Analytics
Go to analytics.google.com
Fill in your details: account name, property name, timezone, currency, business size, etc. (some details are not mandatory)
Accept the Terms & Conditions, then choose web platform
On the next pop-up, enter checkout.xendit.co as the page url as and give it a name
On the next page, your Google Analytics ID will be displayed
Facebook Pixel
Open business.facebook.com
Click on Events Manager
Click Connect Data
Select Web
Enter a name for your analytics project
You can ignore website name or simply enter checkout.xendit.co
Click Close (no need to proceed to the next section since we just need the ID, and integration is already implemented)
On the left panel, find the Pixel ID below the name of the project