Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

"Product List Viewed" not writing product_ids to FB correctly #30

Open
skyfallsin opened this issue Nov 22, 2016 · 10 comments
Open

"Product List Viewed" not writing product_ids to FB correctly #30

skyfallsin opened this issue Nov 22, 2016 · 10 comments
Labels
migrated The issue has been migrated

Comments

@skyfallsin
Copy link

skyfallsin commented Nov 22, 2016

Ref: https://github.com/segment-integrations/analytics.js-integration-facebook-pixel/blob/master/lib/index.js#L134

The product_ids are not getting dispatched to FB properly, and instead the category is being sent.

Here's the spec on the FB side (Scroll down to View Category)
https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/product-audiences/v2.8

@liveink
Copy link

liveink commented Nov 22, 2016

The specific code example related to the above is:

fbq('track', 'ViewCategory', {
  content_name: 'Really Fast Running Shoes',
  content_category: 'Apparel & Accessories > Shoes',
  content_ids: ['1234', '2424', '1318', '6832'], // top 5-10 results
  content_type: 'product'
});

@hankim813
Copy link
Contributor

cc @sperand-io @jgershen

@WesleyDRobinson
Copy link

Perhaps updating Product List Viewed to trigger FB ViewCategory method is a good idea.
At least, passing an array of product_ids for ViewContent content_ids seems more inline with FB spec than "category name."

While one particular guide is somewhat ambiguous,
other definitions offered in Facebook docs for content_ids agree:
"Product ids associated with the event. e.g. SKUs of products for AddToCart event: ['ABC123', 'XYZ789']"

@mattmiddlesworth
Copy link

This issue affects our implementation with Segment. Any progress on a fix?

@jgershen
Copy link

jgershen commented Apr 4, 2018

@calvinfo

@calvinfo
Copy link

calvinfo commented Apr 4, 2018

Hey @mattmiddlesworth have you contacted us on our support page by any chance?

That is the fastest path to get this issue resolved! https://segment.com/help/contact

@mattmiddlesworth
Copy link

Hey @calvinfo we do have an open issue with segment. Just noticed this issue in github and wanted to show my support. Thanks!

@JackieCabinet
Copy link

JackieCabinet commented Apr 4, 2018

@calvinfo Request #144468 is the support ticket we have for Segment 'Viewed Product List' mapping content_ids incorrectly to Facebook Pixel 'ViewContent'

@theJoeBiz
Copy link

Looks like this was fixed 14 days ago in 90c15b6, but my analytics.min.js still has the old version of the productListViewed function. When can we expect to see this deployed to production?

@SegmentDestinationsBot
Copy link

Hi @skyfallsin, as part of the monorepo migration, this issue has been moved to new issue. Our engineers have been notified and will prioritize and work on it ASAP. Thank you!

For more information, see README.md.

@SegmentDestinationsBot SegmentDestinationsBot added the migrated The issue has been migrated label Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
migrated The issue has been migrated
Projects
None yet
Development

No branches or pull requests

10 participants