Announcement

Collapse
No announcement yet.

Eileen's guide to Google Analytics with V8

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

    #91
    Hi zigzagad

    My GA is now working however my funnel has stopped working like yours. It looks for receipt.htm

    It was working with the old version of eleins code which i half got to work.

    Any ideas on what page i should link to to track sales conversions?

    Thanks for your help,

    Ben.

    Comment


      #92
      found a problem:

      23) prior to the <td for cost, insert the following block of code:
      Prior to the <td> would put this script firmly outside the spec for html.

      surely between the <td> and the contents?

      this could cause problems for some browsers, that cannot and will not render elements within the structure of a table.

      Comment


        #93
        Hi, I've implimented this excellent code into our site and everything seems to be working fine, but the code which i inserted before the </body> tag on the reciept page generates a box at the bottom. Is there a reason for this?

        HTML Code:
        <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
        </script>
        <script type="text/javascript">
        _uacct = "UA-4596566-1";
        urchinTracker();
        document.write('<form  name="utmform"><textarea cols="80" rows="10" id="utmtrans">' + utmt + utmi + '</textarea></form>');
        /* document.write('<form style="display:none;" name="utmform"><textarea id="utmtrans">' + utmt + utmi + '</textarea></form>');*/
        </script>
        I've commented it out and it is removed, but will this affect my GA?

        Posts earlier said something about there no need for this code to appear twice in the receipt, once after the </head> tag and another time before the </body> tag.

        Help!?
        Attached Files
        Cheers FrAz

        Comment


          #94
          Originally posted by zigzagad View Post
          Has anyone got this working with the new code, and if so could they offer any advice on what I need to change?
          I have now sorted the code for the new analytics code, first cut and paste the code from google into the code for one of the checkout pages (they all use the same basic code so only one page needs to be modified). I put it just before the /body tag as specified by google.


          To get the checkout code in google goals working we need to change the page name using the actinic variable pagetype by adding this to the google code

          pageTracker._trackPageview('<actinic:variable name="PageType" />.html');

          This is fine providing you do not want to track sections pages as they all now become section.html. To sort this I have added the same two block if as per Eileens code see below.


          <script type="text/javascript">
          var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
          document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga"+"."+"js' type='text/javascript'%3E%3C/script%3E"));
          </script>
          <script type="text/javascript">
          var pageTracker = _gat._getTracker("UA-nnnnnnn-1");
          pageTracker._initData();
          <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%21%3d%20%27Section%27" >
          pageTracker._trackPageview('<actinic:variable name="PageType" />.html');
          </actinic:block>
          <actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Section%27">
          pageTracker._trackPageview();
          </actinic:block>
          </script>

          Now move to the receipt page and add the same google code but add /receipt.html into pagetracker.

          pageTracker._trackPageview('<actinic:variable name="PageType" />.html');


          so the code for receipt is now

          <script type="text/javascript">
          var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
          document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga"+"."+"js' type='text/javascript'%3E%3C/script%3E"));
          </script>
          <script type="text/javascript">
          var pageTracker = _gat._getTracker("UA-nnnnnnn-1");
          pageTracker._initData();
          pageTracker._trackPageview("/receipt.html");
          </script>

          This code works with Eileens setup for the analytic goal. You can also pickup on users of the cart which is recorded as Shopping Cart.html

          I hope this helps

          Malcolm

          SellerDeck Accredited Partner,
          SellerDeck 2016 Extensions, and
          Custom Packages

          Comment


            #95
            google analytics with non standard &lt;body stuff

            I have greybox running on the site. As a result I have replaced
            Code:
            </head>
            
            <body onload="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
            with
            Code:
             <script type="text/javascript>
               function afterpageload(){
               <actinic:variable name="OnLoadScript" value="PreloadImages" />
               </script>
               <script type="text/javascript">AJS.AEV(window, 'load', function() {afterpageload()});</script>
            
            </head>
            
            <body>
            In accordance with Norman's reccomendations on post 10 of this thread

            Obviously i cant use the onload function on the body tag anymore, so how do I go about Eileen's instruction to change body to

            Code:
            <body onload="<actinic:variable name="OnLoadScript" value="PreloadImages" />; javascript:__utmSetTrans()">
            without changing it?

            Cheers
            http://www.itwiz.co.uk

            http://www.AntiV.net - The Discount Antivirus Store

            Comment


              #96
              Can I add other checkout pages

              Hi,

              If I want to add checkout page 3 do I need to add any more coding, or is the coding I have followed at the start of this thread enough.

              Sorry if I am being thick but although I can follow instructions, I'm not all that up on the actual structure of the pages

              Many thanks in advance

              Denise
              Okay, I pulled the pin. Now what?... Wait!...Where are you going?

              Comment


                #97
                Are you sure you want to use checkout page 3?

                Page 3 contains a java applet that is (was) used in older versions of Actinic to allow entering of customer credit card details withour using SSL. This is no longer a compliant method of collecting credit card details. You should rather use a PSP to capture credit card details on their server not yours.

                Comment


                  #98
                  Hi, I use SSL on checkout, but people enter in their card details and I process the payment offline.

                  I am actually in the process of changing that over to the Actinic Epos, but haven't got it fully set up yet..

                  So i expect i wont need the checkout page 3 then.

                  I have now got the code working on google, but the funnel isn't so I am going to read back thru the posts to see if I can work out what I have done wrong.
                  Okay, I pulled the pin. Now what?... Wait!...Where are you going?

                  Comment


                    #99
                    I went ahead and applied the code without the javascript:__utmSetTrans() bit in the body as i couldn't get it working otherwise. Its working pretty much perfectly, but I don't understand the implications of this. Could it cause a problem??
                    http://www.itwiz.co.uk

                    http://www.AntiV.net - The Discount Antivirus Store

                    Comment


                      if we are using paypal pro do we need to include the psp bounce bit in the goal??
                      http://www.itwiz.co.uk

                      http://www.AntiV.net - The Discount Antivirus Store

                      Comment


                        Google Analytics affects speed

                        I have been using Google Analytics for a couple of months now on a V8 site and found that the speed of access varied considerably during the day. After investigating I believe it was caused by loading the google scripts from their servers which can have a detrimental effect when the servers are very busy, since removing the analytics code my site is much quicker.

                        As anyone else seen this happen and has anyone tried loading the script onto their own server instead of using the link to the Google servers.

                        On a related note I am wondering why we give Google so much information free of charge by adding Google Analytics to our sites?

                        Malcolm

                        SellerDeck Accredited Partner,
                        SellerDeck 2016 Extensions, and
                        Custom Packages

                        Comment


                          It can have performance issues when your site goes elsewhere to get something, as you rely on them not your site, just like live chat which can grind a site to a halt. They provide it free because they want to know the information about your site as much as you do .

                          Comment


                            Originally posted by leehack View Post
                            They provide it free because they want to know the information about your site as much as you do .
                            I was questioning why we as a community are so willing to let google take advantage of us, do we realise just what sort of monster we are creating.

                            Malcolm

                            SellerDeck Accredited Partner,
                            SellerDeck 2016 Extensions, and
                            Custom Packages

                            Comment


                              Because its free i guess, if its free it has to be used in our society. They have more than they will ever need now i expect, so just use it I reckon.

                              Comment


                                utmordernumber error on website

                                Morning,

                                I have carefully followed all of Eileens excellent instructions but I now have two errors on the checkout pages that state:

                                Line:38
                                Char:1
                                Error:utmordernumber is undefined
                                Code: 0

                                and

                                Line:49
                                Char:1
                                Error:utmordernumber is undefined
                                Code: 0

                                Does anyone have any ideas why this might be?

                                Many thanks

                                Nick

                                Comment

                                Working...
                                X