Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wuservices opened this issue Jul 17, 2024 · 0 comments

Comments

@wuservices
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant