Problem 1:
The Facebook Pixel Code layout is placed above </head> in overall layouts.
This is a bad place for it as it contains an IMG tag.
I suggest moving it to above </body> in all these layouts. This will also help fix:
Problem 2:
The lines:
Both fail because the Total variable is only valid within the Shopping Cart Grid layout.
This code will fix that:
But only if the Facebook Pixel Code layout is placed above </body> as per my (1).
The Facebook Pixel Code layout is placed above </head> in overall layouts.
This is a bad place for it as it contains an IMG tag.
I suggest moving it to above </body> in all these layouts. This will also help fix:
Problem 2:
The lines:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22">fbq('track', 'InitiateCheckout', {value: '<actinic:variable name="Total" />', currency: 'GBP'});</actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">fbq('track', 'Purchase', {value: '<actinic:variable name="Total" />', currency: 'GBP'});</actinic:block>
This code will fix that:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22">fbq('track', 'InitiateCheckout', {value: $( "#idCartHeadingTotal" ).text().replace(/[^0-9\.]/g, ''), currency: 'GBP'});</actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">fbq('track', 'Purchase', {value: '<actinic:variable name="OrderTotalBaseUnit" />', currency: 'GBP'});</actinic:block>
Comment