Checkout Tracking
Track completed purchases with checkout items and configured field roles.
The ff-checkout-tracking element sends a checkout tracking request for each ff-checkout-tracking-item in its DOM. Generate these elements server-side after checkout completes. Each product needs its own item with record-id.
Optionally provide count, price, and channel:
countis the number of purchased items. It defaults to1.priceis the item price. When absent, it is inferred from the clicked item and configured field roles.channelselects the tracking channel. When absent, theff-communicationdefault applies.
<ff-checkout-tracking>
<ff-checkout-tracking-item record-id="10321926" count="5" channel="NEW_CHANNEL"></ff-checkout-tracking-item>
<ff-checkout-tracking-item record-id="10321938" count="3" price="9.99"></ff-checkout-tracking-item>
<ff-checkout-tracking-item record-id="10321943" count="1"></ff-checkout-tracking-item>
</ff-checkout-tracking>Documentation
Disable auto-tracking
The tracking requests are sent immediately after the element has finished initializing. You can disable this behavior by setting the property disable-auto-tracking like so:
This enables you to manipulate the ff-checkout-tracking-item child elements on the client-side. Consequentially, you will have to manually invoke ff-checkout-tracking's trackCheckoutItems() function through JavaScript.
Field roles
Set fieldRoles manually so ff-checkout-tracking resolves the correct fields:
Replace the example values with your field names. Retrieve the configuration by running a search on a page using FactFinder Web Components. Then open browser DevTools and run:
API code
ff-checkout-tracking
Properties
Methods
ff-checkout-tracking-item
Properties
Last updated
Was this helpful?