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

Product Campaign

Trigger product-detail campaigns and render feedback or pushed products.

Documentation

Adding a Product Campaign

Use ff-campaign-product to display product campaigns on a product detail page. Add the element and set product-id to the FactFinder field configured with the Product number (campaign) role.

Check Field summary in FactFinder backend when you are unsure which field applies. Usually, set this attribute dynamically with JavaScript whenever the viewed product changes.

<ff-campaign-product record-id="12345"></ff-campaign-product>

The element triggers a campaign but does not render content. Depending on the configured campaign, add ff-campaign-feedbacktext with is-product-campaign for feedback text or ff-campaign-pushed-products with is-product-campaign for pushed products.

See Campaign and Pushed Products for the associated components.

<ff-campaign-feedbacktext is-product-campaign label="your-label">
    {{{text}}}
</ff-campaign-feedbacktext>

<ff-campaign-pushed-products is-product-campaign>
    <ff-record-list subscribe="false">
        <ff-record>...</ff-record>
    </ff-record-list>
</ff-campaign-pushed-products>

Demo

API code

Properties

Properties
Name
Description

record-id (Number) (default: empty)

When the record-id attribute is set, an AJAX request is made to retrieve all product campaigns for the given product ID.

id-type (String) Options: "id", "productNumber" (default: "productNumber")

This attribute is only relevant when you are integrating against FactFinder NG API v4 and later. It determines the type of record-id.

Last updated

Was this helpful?