For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tracking Edge Cases

Use discount prices correctly in FactFinder tracking requests.

Discount Prices

If your shop offers discount prices, change the returned data to track the discount price instead of the normal price.

The Problem

FactFinder uses Field Roles to identify the field that should be used for specific actions.

Example Field Roles

{
    brand: "BrandFieldName",
    campaignProductNumber: "SomeIDField",
    deeplink: "DeeplinkField",
    description: "DescriptionField",
    displayProductNumber: "SomeIDField",
    ean: "TheEanField",
    imageUrl: "ImageUrlField",
    masterArticleNumber: "MasterArticleNumberField",
    price: "PriceField",
    productName: "NameField",
    trackingProductNumber: "SomeIdField"
}

Reading through the field roles, we can see that the field PriceField contains the price. FactFinder Web Components resolve fields when they prepare a tracking request or anything else that requires knowledge about specific parts of your data.

In the case of a discount price field, they would look up the wrong field because discountPrice != price.

Using Discount Prices for Tracking Requests

Consider the following scenario:

Your product data contains two price fields: price and discountPrice. The discountPrice field contains null if no discount price is available. The field role looks like "price": "price".

Write the discount price into the price field for proper tracking. To keep your <ff-record-list> templates simple, introduce a new field for displaying the price, such as origPrice or displayPrice.

The template could look like:

Last updated

Was this helpful?