Today while adding Google Analytics to my site, I encountered a serious problem wherein Google was not granting access. It was constantly throwing following error:
The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows: The site “http://www.xyz.com”
As a matter of fact anyone who wants to pull data from Google applications (contacts, calendar, web statistics, etc) needs to first be granted permission to do so by the user who owns or has legitimate access to that data. Google originally built its own “Google Authentication Service” to accomplish this, and has also recently adopted the open API authorization protocol OAuth.
I managed to resolve the issue by visting “https://www.google.com/accounts/ManageDomains” and adding the domain name to the google account that is connected to the Google Analytics.