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.
True. Happens because Google considers sub domains to be separate sites Any other errors you are experiencing?
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.
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..
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?