Legacy Enhanced Analytics

📘

New Enhanced Analytics

To use the new Enhanced Analytics plugin, refer to the Enhanced Analytics documentation.

Overview

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

How it works

As a user navigates between web pages, Affirm.js records information about their session. This includes discrete events for tracking product impressions, viewing product details, adding to or removing from the shopping cart, initiating the checkout process, and completing a purchase.

Embed Affirm.js

Affirm.js is a JavaScript library that allows you to easily add Affirm-related interactivity to your site. To use the Enhanced Analytics plugin, you must first embed Affirm.js.

Measuring the eCommerce lifecycle

After embedding Affirm.js, you'll have access to new enhanced analytics commands to begin tracking the following eCommerce lifecycle events:

Category

Page

Action

Description

Browsing

Search Result Page (SRP)

  • Products searched

  • Product list viewed

  • The user searched for one or more products.

  • The user viewed a product list or category.

Promotion

Home page, Site-wide

  • Promotion viewed

  • Promotion clicked

  • The user viewed a promotion.

  • The user clicked on a promotion

Product

Product detail page, Cart page

  • Product clicked

  • P0 - Product viewed

  • P0 - Product added

  • Product removed

  • P0 - Cart viewed

  • The user clicked on a product link.

  • The user viewed the details of a product.

  • The user added one or more products to their shopping cart.

  • The user removed one or more products from their shopping cart.

  • The user viewed their shopping cart.

Checkout

Checkout page

  • P0 - Checkout started

  • Checkout step viewed

  • Checkout step completed

  • Payment entered

  • The user initiated the order process.

  • The user viewed a checkout step.

  • The user completed a checkout step.

  • The user added payment information.

Order

Purchase confirmation page

  • Order completed

  • Order updated

  • Order refunded

  • Order canceled

  • The user completed the order.

  • The user updated the order.

  • The user initiated an order refund.

  • The user canceled the order.


Did this page help you?