magento / meta-for-magento2

33 stars 19 forks source link

ViewContent - wrong data. #27

Open Bashev opened 9 months ago

Bashev commented 9 months ago

Facebook/Meta expects to see contents or content_ids (parameters) as array (json) instead of comma separated skus, as is now. https://www.facebook.com/business/help/606577526529702?id=1205376682832142

image

This reflects to wrong ViewContent event tracking. In most of the cases if we have configurable products or grouped products they cannot be tracked because of that.

Preconditions (*)

1. 2.

Steps to reproduce (*)

  1. Open random product.
  2. Check Meta Pixel Helper
  3. Look for Contents and Content_ids variables.

Expected result (*)

  1. content_ids
    content_ids: ['123', '456']
  2. contents
    contents: [{id: '1234', quantity: 1}]

    image

Actual result (*)

  1. content_ids:

    content_ids: '123, 456'
  2. contents:

    contents: ['123, 456', 'quantity': 1]
Bashev commented 7 months ago

@zlik can you zoom on this?