File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Meta/Conversion/view/frontend/templates/pixel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ if ($block->getFacebookPixelID()) {
11
11
{
12
12
"*": {
13
13
"Meta_Conversion/js/metaPixelTracker" : {
14
- "url" : "<?= $ block ->escapeJs ($ trackerUrl ); ?> ",
15
- "payload": <?= $ block -> escapeJs ( json_encode ([
14
+ "url" : "<?= $ block ->escapeUrl ($ trackerUrl ); ?> ",
15
+ "payload": <?= /* @noEscape */ json_encode ([
16
16
"eventName " => $ block ->getEventToObserveName (),
17
17
"productId " => $ block ->getProductId ()
18
- ])) ?> ,
19
- "browserEventData": <?= $ block -> escapeJs ( json_encode ([
18
+ ]) ?> ,
19
+ "browserEventData": <?= /* @noEscape */ json_encode ([
20
20
'fbAgentVersion ' => $ block ->getFacebookAgentVersion (),
21
21
'fbPixelId ' => $ block ->getFacebookPixelID (),
22
22
'source ' => $ block ->getSource (),
@@ -31,7 +31,7 @@ if ($block->getFacebookPixelID()) {
31
31
'value ' => $ block ->getValue () ?? '' ,
32
32
'currency ' => $ block ->getCurrency () ?? ''
33
33
]
34
- ])) ?>
34
+ ]) ?>
35
35
}
36
36
}
37
37
}
You can’t perform that action at this time.
0 commit comments