Magento_root_dir/app/code/Emarsys/Emarsys/view/frontend/templates/emarsys/javascripttracking.phtml
Replace the following code from line number 22 to 24:
<?php if ($cartData = $block->getCartItemsJsonData()): ?>
<script>ScarabQueue.push(["cart", [<?php echo $cartData; ?>]]);</script>
<?php endif; ?>
with:
<script>ScarabQueue.push(["cart", [<?php echo $block->getCartItemsJsonData() ?>]]);</script>
Please edit the file at following path: