Announcement

Collapse
No announcement yet.

Tracking Site Search with Google Analytics

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

    #16
    Hi Dave,

    one thing I have noticed since having changed the analytics script is that it appears to have meant that my funnel visualtion for my cart to checkout goal no longer seems to populate due to the fact that this change has also changed the tracking script on my cart and checkout stages as well. With the ecommerce code it pulled through the page name e.g. "urchinTracker('Search Results.html');" where as now it doesn't.

    Just wanted to check if you used the goal funnel visualtion with your site and if so how you got around this issue? I expect that I may need to look at using a block if to show the ecommerce tracking script on pages between the cart and checkout but use the standard script on the search pages.

    Regards
    Jon
    www.designtoplease.co.uk
    www.getmeoutofahole.com
    www.toys4james.co.uk
    Located in Herts

    Comment


      #17
      Jon,

      You probably want to check out Eileens guide for Analytics as we don't track sales through our site but, to point you in the right direction, this is the code we use for our site, inserted once in our main layout:-

      Code:
      <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
      </script>
      <script type="text/javascript">
      _uacct = "xx-xxxxxx-x";
      urchinTracker(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Shopping%20Cart%27" >'cart.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%201%27" >'order01.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%202%27">'order02.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Receipt%27" >'order04.html'</actinic:block>);
      </script>
      It just uses blocks to control the variable for the urchintracker field. This work for our visualisation.
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #18
        Hi Dave,

        Just wanted to say thanks for your help - over the weekend i changed the analytics script to

        Code:
        <script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
        </script>
        <script type="text/javascript">
        _uacct = "xx-xxxxxx-x";
        urchinTracker(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Shopping%20Cart%27" >'cart.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%201%27" >'order01.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Checkout%20Page%202%27">'order02.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%27Receipt%27" >'order04.html'</actinic:block>);
        </script>
        and now my funnel visualisation and search tracking arew both working fine.

        Kind Regards
        Jon
        www.designtoplease.co.uk
        www.getmeoutofahole.com
        www.toys4james.co.uk
        Located in Herts

        Comment

        Working...
        X