Currently, only these mappings exist:
Product Added > add_to_cart
Order Completed > checkout
|
const mapEventName = (name: string | undefined) => { |
|
if (name === 'Product Added') { |
|
// Fixed the assignment (=) to comparison (===) |
|
return 'add_to_cart' |
|
} else if (name === 'Order Completed') { |
|
return 'checkout' |
|
} |
|
} |
However, Pinterest has additional event names that overlap with Zaraz ecommerce supported events:
Products Searched > search
Product List Viewed > view_category
Currently, only these mappings exist:
Product Added>add_to_cartOrder Completed>checkoutpinterest-conversion-api/src/utils.ts
Lines 149 to 156 in 3744442
However, Pinterest has additional event names that overlap with Zaraz ecommerce supported events:
Products Searched>searchProduct List Viewed>view_category