My domain and subdomain as Referral in GA?

Discussion in 'Google Analytics' started by Singhvineet, Sep 17, 2009.

  1. #1
    I am having problem tracking exact search traffic. My Google Analytics is showing http://abc.com and http://search.abc.com as a referrals.

    I have used the following 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("UA-#*$!#*$!-x");
    pageTracker._setDomainName(".example.com");
    pageTracker._trackPageview();
    } catch(err) {}
    </script>

    But I haven't setup the Advanced filter.

    Also, using a website URL without www in Profile setting can have effect on tracking results?

    Please suggest how to solve this problem.
     
    Singhvineet, Sep 17, 2009 IP
  2. onsons

    onsons Peon

    Messages:
    108
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    check in setting where you write the domain name and details. there is no effect with or without www
     
    onsons, Sep 18, 2009 IP
  3. Jollyboy

    Jollyboy Guest

    Messages:
    96
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    True.

    Happens because Google considers sub domains to be separate sites

    Any other errors you are experiencing?
     
    Jollyboy, Sep 19, 2009 IP
  4. Singhvineet

    Singhvineet Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4

    Can i have the solution for this?

    I have added the advance filter as stated in www.google.com/support/analytics/bin/answer.py?hl=en&answer=55524

    Still the the sub-domain is listed in referral.

    Also now the content report shows www.abc.com in all the url as:
    http: //www.abc.com/www.abc.com/home
    http: //www.abc.com/search.abc.com/search/gr/abc?keyword=abc

    It looks when http:// search.abc.com/search/gr/abc?ldb=on&xyz=10 is opened we find the Analytics code. But when ?ldb=on&xyz=10 is removed we couldn't find the code.

    Do i place the same code for search.abc.com as looking its source there is no GA code?

    Please help i need the solution ASAP.
     
    Singhvineet, Sep 21, 2009 IP
  5. dipali

    dipali Peon

    Messages:
    450
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5

    For that you need to create separate code of sub domain for tracking of each and individual sub domain individually..

    Refer this link :- http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55524

    I can suggest integrate internal search of website in google analytics this will help you out for getting more idea about what kind of things are looking in your website. that will help full for optimizating website in that manner as per current trend.

    Referral link :- http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=75817

    Hope this will help you. let me know if you have any query..
     
    dipali, Sep 22, 2009 IP
  6. joepa3

    joepa3 Active Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #6
    I'm having this same problem too and its driving me nuts. If I come across a solution I'll post it here.

    One thing I did notice though, did you change:
    pageTracker._setDomainName(".example.com");
    to be the name of your domain?
     
    joepa3, Sep 29, 2009 IP