Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Google Analytics Problem

Options
  • 11-08-2009 2:31pm
    #1
    Closed Accounts Posts: 845 ✭✭✭


    Hi guys,

    Im not too familiar with Google analytics but have a tracker on a site. I recently had to create a CMs template for this site and therefore the same tracker was on the CMS site. Does having the same tracker on 2 different sites break the code?
    <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"> 
    try {
    var pageTracker = _gat._getTracker("**********");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    


Comments

  • Registered Users Posts: 2,791 ✭✭✭John_Mc


    Yes I would imagine it does.

    Setup a new site in your google anaylytics page and you'll need to verify that you own the domain. Then you'll be given the unique JS Tracker code snippet.


  • Registered Users Posts: 11,987 ✭✭✭✭zAbbo


    The tracker just collects data based on the unique getTracker attribute.

    If you collect with the same attribute on 2 websites, it will show all data as one.

    Do you want to track users across 2 websites as one? (like passing a visitor to a 3rd party)

    If you want to treat the websites differently, then add a new websites in the Analytics control panel.


  • Closed Accounts Posts: 845 ✭✭✭yupyup7up


    thanks for the replies. Well no it was a mistake on my part for including the tracking code on the CMS site. I don't want the CMs site to track at the moment


Advertisement