Product
The product object represents a product line item that is in the cart or that has been purchased in an order.
Last updated
Was this helpful?
The product object represents a product line item that is in the cart or that has been purchased in an order.
Last updated
Was this helpful?
Type: string
Required
A unique product identifier. Used to differentiate products in the cart or order.
Some shopping carts use the same identifier or SKU for different variants of a product. If multiple products appear with the same id
, Fanplayr will consider them identical and merge their quantities together. This can lead to undesired data being tracked so it is important that you provide a unique id
for each distinct product being tracked.
See:
Type: integer
Required
The quantity of the line item in the cart or order.
Type: string
Required
The product SKU. This may be the same as id
, but is also made available as a segmentation option.
Type: string
Required
The product name. E.g. "Red Shoes".
Type: float
Required
The unit price of the product visible to the user.
For carts that implement a base price and a discounted/sale price, use the discounted price if it is the price shown to users when they add the product to the cart.
Type: string[]
An array of brand names associated with the product.
Example: ["Nike"]
Type: string[]
An array of category names associated with the product.
Example: ["Women", "Shoes"]
Type: string
The ID of the category that this product belongs to. Multiple categories can be specified by separating them by commas. E.g. "32,762".
Type: string
The name of the category that this product belongs to. Multiple categories can be specified by separating them by commas. E.g. "Hardwood floors,Benches".
Type: string
The URL of the page that displays full details of the product.
Type: string
The URL of the product image.
Fanplayr will not be able to track these as separate products as they share the same id
:
Instead, Fanplayr will see these as a single product because it merges quantities of products with the same id
. This can lead to incorrect calculation of product prices and quantities.
This can be avoided by providing unique identifiers for products:
Scope: Only applies to Product objects used in Shopping Cart and Order Confirmation pages. For Product pages, use the property.
Scope: Only applies to Product objects used in Shopping Cart and Order Confirmation pages. For Product pages, use the property.
Deprecated. Use instead.
Deprecated. Use instead.