SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Member
    Join Date
    May 2012
    Tampa, Florida, United States
    0 Post(s)
    0 Thread(s)

    Traffic Dropped After Adding Google Analytics Subdomain Tracking


    I need to be able to separate the Google Analytics reporting on my site in the following ways:

    1. Full tracking for
    2. Track subdomain in a profile under the main site

    Yesterday, I replaced the traditional tracking code with the following modified code:

    <script type="text/javascript">

    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

    document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));


    <script type="text/javascript">

    var pageTracker = _gat._getTracker("US-XXXXXXX-X");





    Since I added this code, ONLY the organic search traffic from Google has decreased, and by 83%. I have never tracked a subdomain before and there was a lot of older material online about how to do it, because apparently Google's own code is messed up. Can anyone provide any insight as to why this drop in organic traffic may have occured? Any ideas for a fix? I'd really appreciate any and all advice.
    Last edited by TechnoBear; May 24, 2012 at 08:55. Reason: Example URL delinkified

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts