Announcement

Collapse
No announcement yet.

Google Analytics Conversion Code Problem

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

    #16
    error - visible text on receipt page

    HI,
    I have inserted the following code on the receipt page:

    <body onLoad="javascript:__utmSetTrans()">

    <form style="display:none;" name="utmform">
    <textarea id="utmtrans">
    UTM:T|NETQUOTEVAR:THEORDERNUMBER|affiliation|NETQUOTEVAR:ACTINICORDERTOTAL|tax|shipping|city|state|country
    UTM:I|NETQUOTEVAR:THEORDERNUMBER|sku/code|productname|category|price|quantity
    </textarea>
    </form>

    and it does collect the data but the result is actually visible on the receipt page within a box when an order is completed on the site. Am i missing some code to hide the text on the receipt page?

    Thanks.

    Comment


      #17
      Paul,

      Try using that code between..
      <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
      <!--

      Your code

      //-->
      </SCRIPT>

      Kind regards,
      Bruce King
      SellerDeck

      Comment


        #18
        sorry to be thick bruce

        I have the attached code in order 4 template but am still not getting any stats from Google any ideas?

        <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
        <!--
        <body onLoad="javascript:__utmSetTrans()">

        <form style="display:none;" name="utmform">
        <textarea id="utmtrans">
        UTM:T|NETQUOTEVAR:THEORDERNUMBER|affiliation|NETQUOTEVAR:ACTINICORDERTOTAL|tax|shipping|city|state|country

        UTM:I|NETQUOTEVAR:THEORDERNUMBER|sku/code|productname|category|price|quantity
        </textarea>
        </form>
        XXXXXX-1
        //-->
        </SCRIPT>

        Comment


          #19
          Hi,

          Can you put up a copy of the template so that we can take a look at it for you?

          Kind regards,
          Bruce King
          SellerDeck

          Comment


            #20
            Paul,

            JavaScript tags are wrong here. Return to the Post #16 code. You need to hide the TEXTAREA.

            try

            <span style="display:none; visibility:hidden">
            <form ...>
            .
            .
            .
            </form>
            </span>

            Other considerations.

            You should only have one <body ...> tag in a page. You really need to attach that onLoad code to the main body tag - probably by altering the Checkout Primary Template. However if it works in all browsers you may get away with what you've done.

            You can't have a FORM within a FORM. Make sure you've not placed that code within an Actinic generated form. Look at the source of the page to see.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X