Skip to content

Commit df526ba

Browse files
authored
added contents field in browser payload for view content event (#180)
1 parent 27a9c00 commit df526ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Meta/Conversion/view/frontend/templates/pixel/view_content.phtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ if ($block->getFacebookPixelID()) {
2727
'content_type' => $block->getContentType(),
2828
'content_ids' => $block->getContentIDs(),
2929
'content_name' => $block->escapeUrl($block->getContentName()) ?? '',
30+
'contents' => [
31+
'id' => $block->getContentIDs() ?? '',
32+
'quantity' => 1
33+
],
3034
'content_category' => $block->getContentCategory() ?? '',
3135
'value' => $block->getValue() ?? '',
3236
'currency' => $block->getCurrency() ?? ''

0 commit comments

Comments
 (0)