Why is "www.mysite.com" different from "mysite.com"?

Posted by sapeish on Pro Webmasters See other posts from Pro Webmasters or by sapeish
Published on 2012-08-30T00:29:41Z Indexed on 2012/08/30 3:49 UTC
Read the original article Hit count: 351

In any browser if I use www.mysite.com or just mysite.com the web page is correctly retrieved, but I am having trouble with Google Analytics and Facebook App.

Facebook: To be able to get Likes, I create the Facebook App needed and set the site URL to http://mysite.com/. Using their tool http://developers.facebook.com/tools/debug/ when I test my page using http://mypage.com it works but using http://www.mypage.com fails with the message:

Object at URL 'http://www.mysite.com/' of type 'website' is invalid because the domain 'www.mysite.com' is not allowed for the specified application id.

Google Analytics: To be able to get traffic statistics, I created a Property and a Profile both with the URL http://www.mypage.com and no statistics were gathered in a week, when I changed the configured URL to http://mypage.com statistics where available a few hours later.

What should I do to have statistics and likes for both www.mysite.com and mysite.com ??

© Pro Webmasters or respective owner

Related posts about google-analytics

Related posts about google-webmaster-tools