I need help to install Same Analytics code across Diffrent domains

Discussion in 'Google Analytics' started by bobbyaryan160, Nov 20, 2013.

  1. #1
    Hi Guys,
    I am looking for serious help regarding setting up Google analytics code that is same code but want to install on 10 different domains to have a master tracking profile. Than I want to use filter to get data for individual domains. I am using cross domain method:-

    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push('_setAccount', 'UA-45316997-1');
    _gaq.push('_setDomainName', 'example.com');
    _gaq.push('_setAllowLinker', true);
    _gaq.push('_trackPageview');
    (function()
    { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); }
    )();
    </script>
    Code (markup):


    It's not showing any data from another site. For main domain it is showing data but for another it's not showing. Is there another method that will collect data from all websites in single account.
     
    bobbyaryan160, Nov 20, 2013 IP
  2. Feelme@alone

    Feelme@alone Active Member

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    Hi,

    You can add multiple website account in a single account, but you must add different analytic code in every different Account.
     
    Feelme@alone, Nov 20, 2013 IP
  3. bobbyaryan160

    bobbyaryan160 Member

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    No No I want to add same analytics code across all domains and track data into single dashboard and also different dashboards, that I can manage with help of views and filters. Main issue is to use single code across different domains,
     
    bobbyaryan160, Nov 20, 2013 IP
  4. EWEBAC

    EWEBAC Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #4
    If you will add a same Code in each and every domain then you can see the data of your 1st domain only where you have placed the code very first. If domain is A is showing you 100 visits, then all the domains B,C,D,E,etc... will show you the 100 visits only.. If you want to track all the different domain you can have one account and can add all the domain under one account...
     
    EWEBAC, Dec 4, 2013 IP