blackcell Posted November 29, 2011 Share Posted November 29, 2011 I have a question I am sure a seasoned Google Analytics user can answer fast. I am new to using analytics and I don't think I have it configured right for the way in which I am using my domain with subdomains. This is what I have: mysite(dot)com - my web space. Right now it has a redirect to go to the below: incept.mysite(dot)com - forums for game discussion and tutorials(smf inspired by phpfreaks woot) I like to think I have smf understanding down. I place my analytics code into the template index file before it prints </head>. On google analytics, I have web properties set to hxxp://incept.mysite(dot)com On the tracking code configuration I have one site with multiple subdomains. For some reason I don't feel this is tracking quite right. I also have an issue where going to hxxp://incept.mysite(dot)com works until you click a link and then it goes to mysite(dot)com/forumfolder/file.php and the navigation goes from there. Any ideas on more info I can provide to help trouble shoot some of this? Thanks a ton in advance. Quote Link to comment https://forums.phpfreaks.com/topic/252053-google-analytics-config-with-subdomain/ Share on other sites More sharing options...
Philip Posted November 29, 2011 Share Posted November 29, 2011 Make sure to have the following since you're using subdomains: _gaq.push(['_setDomainName', '.mysite.com']); And I'd change the web properties to the highest domains (in this case http://mysite.com) There are several tools to debug - GA has a Chrome Extension. My favorite (and what I use daily) is Firebug + Omnibug for Firefox. Quote Link to comment https://forums.phpfreaks.com/topic/252053-google-analytics-config-with-subdomain/#findComment-1292292 Share on other sites More sharing options...
blackcell Posted November 29, 2011 Author Share Posted November 29, 2011 Awesome man. Thanks. I needed to change web properties back. Quote Link to comment https://forums.phpfreaks.com/topic/252053-google-analytics-config-with-subdomain/#findComment-1292299 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.