Enhanced Analytics (Legacy)

The Enhanced Analytics plugin for Affirm.js tracked customer interactions across your site, providing insights into shopping behavior.

❗️

As of March 2025, you can no longer use the Enhanced Analytics plugin.

Overview

The Enhanced Analytics plugin for the Affirm.js library is a simple, easy-to-use tool that offers deeper integration with Affirm to measure customer interactions across your site. With Enhanced Analytics enabled, Affirm can help you better understand your customers’ financial preferences and tailor their shopping experiences accordingly.


The Order Object

ParameterData typeDescription
order
required
objectContains details about the customer’s order
currency
required
stringThree-letter ISO currency code, in uppercase.

Examples: "USD", "CAD"
orderID
required
stringUnique identifier representing the order/transaction in your system
paymentMethod
required
stringDescription of payment method used

Examples: “Visa”, “Mastercard”, “Gift Card”, "Affirm"
total

required
integerThe total value of the transaction, including tax and shipping. The value must be non-negative and represented as cents instead of dollars.