Announcement

Collapse
No announcement yet.

Google Analytics <head> or <body> ?

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

    Google Analytics <head> or <body> ?

    Hi,

    Reading through Daves Guide to Google Analystics,
    http://community.actinic.com/showthr...ogle+analytics
    he states, which seems to work for everyone, place the code

    Code:
    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
      <script type="text/javascript">
    _uacct = "Your Google Number";
    urchinTracker();
    </script>
    in the <head> of the relevant primary pages?

    I have mine in the <body> as instructed by Google.

    Out of interest.... why the conflict?

    S?
    esafetysigns.co.uk
    your instant download portal for self printable health and safety signs and posters
    ... download once use as many times as you like !


    http://www.esafetysigns.co.uk/index.html
    http://www.esafetysigns.co.uk/acatalog/index.html

    #2
    I think it will work in either place but having it at the bottom of your page just before the closing body tag will ensure that all your page loads first reducing possible issues if google's server is unavailable.

    Comment


      #3
      Makes sense,

      Another quick question.......

      In Daves guide he mentions adding some details if you use someone else secure server.

      I use HSBC and the URL is

      https://www.cpi.hsbc.com/servlet

      In Google Analystic Guide
      http://www.google.com/support/analyt...y?answer=26915

      it states.....

      If your website initiates a purchase checkout process on a different subdomain
      (for example, if you send customers from www.mystore.co.uk to shoppingcart.mystore.co.uk):

      Add the following line (in bold) to your tracking code on both your store site and your shopping cart pages:

      <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
      </script>
      <script>
      _uacct="UA-xxxx-x";
      _udn="mystore.co.uk";
      urchinTracker();
      </script>


      So just before I make any changes do I have to add

      Code:
        _udn="https://www.cpi.hsbc.com/servlet";
      or

      Code:
        _udn="www.cpi.hsbc.com";
      Thanks, Simon?
      esafetysigns.co.uk
      your instant download portal for self printable health and safety signs and posters
      ... download once use as many times as you like !


      http://www.esafetysigns.co.uk/index.html
      http://www.esafetysigns.co.uk/acatalog/index.html

      Comment


        #4
        Actually forget that....

        I think I'm reading the wrong bit... I should be doing the bit

        If your website initiates a purchase checkout process on a separate store site
        (for example, if you send customers from www.mystore.co.uk to www.securecart.co.uk):
        I may have to start a new thread..... related but different if you know what i mean.

        Thanks, Simon.
        esafetysigns.co.uk
        your instant download portal for self printable health and safety signs and posters
        ... download once use as many times as you like !


        http://www.esafetysigns.co.uk/index.html
        http://www.esafetysigns.co.uk/acatalog/index.html

        Comment

        Working...
        X