• First, your plugin is amazing! For Google Ads and many other features, it works flawlessly. I’m able to track Google Ads conversions relatively easily.

    With FB, I can’t seem to get the transactionTotal data to populate, using the below Custom HTML tag:

    <script>
    fbq('track', 'Purchase', {value: {{transactionTotal}}, currency: "USD"});
    </script>

    My Facebook Pixel fires without a hitch, and the “Purchase” event is collecting total purchases, just not inserting the value. Google Ads inserts the value just fine.

    The inspect code looks like this:

    fbq("track","Purchase",{value:google_tag_manager["GTM-TVV7JXX"].macro(3),currency:"USD"});

    And the console output shows the following:

    [Facebook Pixel] - Parameter 'value' is invalid for event 'Purchase'.

    I checked the firing order, and it looks ok. This is for a Woocommerce setup on the Order Received page and searching extensively online shows the macro() notation is correct, but the value is not pushing into FB…?

    After spending days on this, I’m hoping a support ticket here will get me closer to processing this variable properly.

    How can I get the value pushed properly?

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • Thread Starter Dario Zadro

    (@zadro)

    For anyone else having issues with this (or parsing any GTM output variable), I found the solution by adding console.log(google_tag_params); in my GTM tag.

    Then, for the solution to my original question, it was simply this:

    fbq('track', 'Purchase', {value: google_tag_params.orderData.totals.total, currency: "USD"});

    Hope this helps others.

Viewing 1 replies (of 1 total)

The topic ‘Facebook Purchase Missing Value’ is closed to new replies.