Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Google Analytics Problem

  • 11-08-2009 02: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, Registered Users 2 Posts: 2,793 ✭✭✭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, Registered Users 2 Posts: 11,985 ✭✭✭✭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