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

Fix ViewContent event data. #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Bashev
Copy link

@Bashev Bashev commented Sep 27, 2023

Description (*)

image

Story

Bug

Task

Fixed Issues (if relevant)

  1. Fixes ViewContent - wrong data. #27

Manual testing scenarios (*)

  1. ...
  2. ...

Questions or comments

Checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@@ -25,12 +25,9 @@ if ($block->getFacebookPixelID()) {
'event' => 'ViewContent',
'payload' => [
'content_type' => $block->getContentType(),
'content_ids' => $block->getContentIDs(),
'content_ids' => json_encode($block->getContentIDs()),
Copy link
Author

@Bashev Bashev Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can update this with Json->Serialize directly in the block, instead of manipulating the data in the phtml file.

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

Successfully merging this pull request may close these issues.

ViewContent - wrong data.
1 participant