• Dear Support,

    We are coming across an error with the Header Footer Settings and conversion tracking for WooCommerce when we use variables inside a script from “The Trade Desk” (TTD).

    We have a universal pixel that we place under ‘Header Footer Settings > Header Script > Any Device’ in PixelYourSite (PYS) with the toggle ‘enabled’ and a conversion pixel that we place under ‘WooCommerce Order Received Page Scripts > Header Script > Any device’ with the toggle ‘disabled’. In other words, we are NOT disabling the global script and only adding the conversion pixel to the /checkout/order-received/ page,i.e. both scripts should fire on the conversion page.

    These are the instructions and the conversion pixel script we have been given by The Trade Desk:

    Place the conversion pixel on the order confirmation page (i.e. /thank_you)

    Replace the {SaleAmount}, {Currency} and {OrderRef} placeholders with the dynamic parameters from the e-commerce platform. {Currency} should be determined by the region.

    <!-- The Trade Desk Purchase Conversion -->
    <img height="1" width="1" style="border-style:none;" alt="" src="https://insight.adsrvr.org/track/pxl/?adv=6113upw&ct=0:j26hrua&fmt=3&v={value}&vf={currency}&orderid={OrderRef}"/>
    <!-- The Trade Desk Purchase Conversion -->

    We then substitute the three variable parameters with the following parameters but keeping the curly brackets:
    [order_number] – order number
    [order_total] – order total
    [currency] – currency

    The resulting tracking code we have is the following:

    <!-- The Trade Desk Purchase Conversion -->
    <img height="1" width="1" style="border-style:none;" alt="" src="https://insight.adsrvr.org/track/pxl/?adv=6113upw&ct=0:j26hrua&fmt=3&v={order_total}&vf={currency}&orderid={order_number}"/>
    <!-- The Trade Desk Purchase Conversion -->

    With this setup, when we use the ‘Tag Explorer’ extension in Chrome, we see the following: https://i.imgur.com/EjH6E6b.png

    As you can see there are no values for the variables.

    When switch to square brackets and we see the following in Tag Explorer:
    https://i.imgur.com/v5MeV2p.png

    Now there is a value, i.e. 42.99, which is correct but a string of numbers are appended to it plus the currency and order number are missing.

    Can you see from the description above what might be going wrong?

    Many thanks for your help with this.

    Piet

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Header Footer – Conversion Tracking Variables’ is closed to new replies.