Skip to main content

Product

When you want to display a campaign on your product page, choose the urlType.PRODUCT interface
Then you have to fill the product attributes:

beyable.page.setAttributes({
urlType: EPageUrlType.PRODUCT,
pageReferrer: document.referrer,
url: "https://my-web-site.com",
productPage: {
productName: "my-article-name",
productReference: "BASKT-XYZ-BLN-41",
productSellingPrice: 22,
productStock: 100,
productUrl: "https://my-web-site.com/my-article-name",
thumbnailUrl: "https://my-thumbnai-img.com/",
productPriceBeforeDiscount: 29,
tags: ["product", "discountProduct"],
},
});
});

productPage attributes details#

attributestypeactions
productName
stringfill productName value to link trigger on specific product name
productReference
stringfill productReference value to link trigger on specific product reference and improved product reporting statisics
productSellingPrice
numberfill productSellingPrice value to link trigger on specific product curent price and improved product reporting statisics
productStock
numberfill productStock value to link trigger on specific product stock and improved product reporting statisics
productPriceBeforeDiscount
numberfill productPriceBeforeDiscount value to display promotionnal campaign
productUrl
stringfill productUrl value to link trigger on specific product url
thumbnailUrl
stringfill thumbnailUrl value to improved reporting display
tags
string[]fill tags values to link trigger on it