Skip to content

Map Products Searched, Product List Viewed ecommerce events to Pinterest events #6

@wuservices

Description

@wuservices

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions