Announcement

Collapse
No announcement yet.

Help with Facebook Pixel

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with Facebook Pixel

    I am doing something wrong. Trying to pass total order value to facebook, from the INVC page:

    <mvt:if expr="l.settings:page:code EQ 'INVC'">
    fbq('track', 'Purchase', {currency: 'USD', value: &mvtj:order:total; });
    </mvt:if>

    I must have something wrong with the value variable or the syntax. The conditional seems to work and the currency part, but it does not pass anything for the order value.

    #2
    I would question why you need the conditional. If you're putting the code on the INVC page, the conditional statement will be true 100% of the time--unless this just part of a snippet you are including in your global header.

    It looks like you have an extra letter in your code. Here's the code I use on that page:

    Code:
    <script>
    fbq('track', 'Purchase', {
    value: &mvt:order:total;,
    currency: 'USD'
    });
    </script>
    Todd Gibson
    Oliver + S | Sewing Patterns for Kids and the Whole Family

    Comment

    Working...
    X