Tracking the subdomains with Analytics

Discussion in 'Google Analytics' started by bombev, Jul 24, 2012.

  1. #1
    Hi,

    I have this tracking code in my sait:

    <script type="text/javascript">
                                            var _gaq = _gaq || [];
                                            _gaq.push(['_setAccount', 'UA-******]);
                                            _gaq.push(['_setDomainName', '.example.com']);
                                            _gaq.push(['_setAllowHash', false]);
                                            _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):
    So can you guys suggest how to change it to track the subdomains.. for example I need to track 100 subdomains

    or if the tracking code is okay.. what else should I do?
     
    bombev, Jul 24, 2012 IP
  2. lorraine02

    lorraine02 Member

    Messages:
    307
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    code data, difficult for me to know in details, you can ask it to some experts .or programmers.
     
    lorraine02, Jul 24, 2012 IP
  3. tranduyninh

    tranduyninh Active Member

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    56
    #3
    Use this tools men : gaconfig.com
     
    tranduyninh, Jul 26, 2012 IP
  4. Saif Rizvi

    Saif Rizvi Member

    Messages:
    143
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #4
    According to me you cant handle those all subdomains through single code but you can manage all domains through single account. You can create different code for different domains but through single account.
     
    Saif Rizvi, Jul 30, 2012 IP
  5. singhbadshah

    singhbadshah Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    in the new Google analytics account, there is an option to set too many sub-domain.
     
    singhbadshah, Jul 30, 2012 IP
  6. Saif Rizvi

    Saif Rizvi Member

    Messages:
    143
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    46
    #6
    First of all i would like to apologies for the previous comment. Yes there is an option to set multiple domains from single domain. You can handle multiple sub domains through single account .
     
    Saif Rizvi, Jul 30, 2012 IP