Using Clearpay analytics
Setting up Clearpay analytics collection
Clearpay analytics are collected as part of the ClearpayJS library. The Clearpay JavaScript library must be included in all pages where analytics metrics might be gathered.
To include the Clearpay JavaScript library in a page, add the following <script>
tag in the <head>
HTML section:
ClearpayJS
Order confirmation analytics
Clearpay analytics records an order_confirmation
event each time a customer reaches an order confirmation screen. Each order confirmation event records whether Clearpay was used, as well as the order value, currency, merchant ID, and order ID.
If a GBP 100 order was completed on your site using Clearpay with an Order Number of 11443 you would use the following attributes: