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

Parameter

Data type

Description

order
required

object

Contains details about the customer’s order

currency
required

string

Three-letter ISO currency code, in uppercase.

Examples: "USD", "CAD"

orderID
required

string

Unique identifier representing the order/transaction in your system

paymentMethod
required

string

Description of payment method used

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

total
required

integer

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