Announcement

Collapse
No announcement yet.

Adroll conversion value variable

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

    Adroll conversion value variable

    Hi all
    I am trying to implement Enhanced Conversion Tracking with AdRoll, we already have the basic code set up and working (though it generates a Javascript error on the receipt page when viewed offline in Designer)

    The code I need to add is

    HTML Code:
    <script type="text/javascript">
      adroll_conversion_value = X;
      adroll_currency = "GBP"
    </script>
    I need to change the adroll_conversion_value to whichever revenue variable Sellerdeck uses - does anyone know which one this is?

    Further details on what I am trying to achieve are here: https://help.adroll.com/hc/en-us/art...rsion-Tracking

    I would appreciate any help

    Thanks

    Mick
    The Pretty Dress Company

    #2
    Anyone from Sellerdeck able to chime in on this?

    Thanks
    The Pretty Dress Company

    Comment


      #3
      It can be tricky getting SD generated content into JavaScript. try this:
      Locate layout Total Row and amend line:
      Code:
         <td align="right" class="checkout-cartheading"><b><Actinic:Variable Name="Total"/></b></td>
      to be
      Code:
         <td align="right" class="checkout-cartheading"><b id="sdgtotal"><Actinic:Variable Name="Total"/></b></td>
      Put all the Adroll JavaScript into the bottom of the Receipt page layout just above the </body> tag.

      Amend the line that sets the value to be:
      Code:
      adroll_conversion_value = $.trim( $( "#sdgtotal" ).text() ).replace(/[^\d\.]/g, '');
      Note: above untested. What it does is use jQuery to locate the text of the total, strip any surrounding white space and remove everything except digits and period.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Great, thanks Norman, I'll give it a go and report back
        The Pretty Dress Company

        Comment


          #5
          It may also be worth putting the bit of JavaScript you show in the first post (as amended by me) above the larger block of JS.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thanks Norman - it works a treat!
            The Pretty Dress Company

            Comment

            Working...
            X