In short: Google has shut down v2.3 of the reporting API. The stable branch of this module is being updated to use v2.4 URLs.
Original report by scott_earnest:
When trying to set up a Google account for authorization, I get to the "Grant Access" page on Google. However, when I click the grant access button it returns me to the admin settings screen without any google analytics account information.
I see the following information in the watchdog, which appears to be coming from Google.
--------------------------------------------------------------
Code: 404 - Error: Not Found - Message: Error 404 (Not Found)!!1 *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}} 404. That’s an error. The requested URL /analytics/feeds/accounts/default?max-results=1000&oauth_consumer_key=anonymous&oauth_nonce=****************&oauth_signature=****************%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1345752101&oauth_token=****************&oauth_version=1.0&start-index=1&v=2 was not found on this server. That’s all we know.
--------------------------------------------------------------
(I *'d out some info above)
I am also seeing the issue on sites that already have had the Google Analytics Reports set up and authorized. On these sites the reports still run but the admin settings page acts as if the site has not yet authenticated, and the above message appears.
Maybe this url is no longer valid?
https://www.google.com/analytics/feeds/accounts/default
Maybe some updates need to be made to GAFeed.lib.inc ? I can see in version 7 some of the paths have changed for getting the account list.
Please let me know if any more information is needed.
Comments
Comment #1
kloewer CreditAttribution: kloewer commentedSame, same ind Drupal 7... :(
Comment #2
Dinesh Kumar Sarangapani CreditAttribution: Dinesh Kumar Sarangapani commentedSame here, any update on this issue?
Comment #3
Ilmar CreditAttribution: Ilmar commentedSame in 7.x-1.2 version.
Comment #4
oturpin CreditAttribution: oturpin commentedHi,
Just downloaded and installed the Reports module.
This error happens on 7.X v1.2 version.
https://www.google.com//analytics/feeds/accounts/ leads to 404 error ...
Comment #5
thameemul.m CreditAttribution: thameemul.m commentedModifying to 7.x Version , to get more attention!
Comment #6
scott_earnest CreditAttribution: scott_earnest commentedI am guessing that something along these lines needs to be implemented into the module:
https://developers.google.com/analytics/resources/articles/gdata-migration-guide
"Management API v2.3 has been shutdown."
Comment #7
oturpin CreditAttribution: oturpin commentedHi Guys,
In the "google_analytics_reports 7.x-3.x-dev" release notes, one can read:
-> Integration with v3 of the Google Analytics API.
That was Posted by raspberryman on April 20, 2012 at 10:46pm
Have to wait a little for release....
Comment #8
Dinesh Kumar Sarangapani CreditAttribution: Dinesh Kumar Sarangapani commentedAgreed with #7, i tried "7.x-3.x-dev" the basic is working fine.
Comment #9
scott_earnest CreditAttribution: scott_earnest commentedHoping something will happen for 6.x as well.
Comment #10
jakemac53 CreditAttribution: jakemac53 commentedI am also experiencing this issue. I am trying to hack it to work in the meantime, got the accounts request working with the management API (the only one you can use now). The core data api looks like it also needs to be upgraded to 2.4 though sigh.
Comment #11
benschwabe CreditAttribution: benschwabe commentedSo would it be worth working towards getting this module to work with v3.x of http://drupal.org/project/oauth so that users can migrate over to oAuth 2.0 in the short term for authentication, then once it's all working, start work on updating the core data api to 3.0.
See: https://developers.google.com/analytics/resources/articles/gdata-migrati...
According to the above, the v2.4 core data api returns v2.3 compatible responses... so it should just work no?
Comment #12
grendzy CreditAttribution: grendzy commentedI updated the URLs to point at the v2.4 API: ab045580
Marking for backport. (BTW this is for the 7.x-1.x and 6.x-1.x branches. The experimental 7.x-3.x will provide support for v3.0 of the API).
Comment #13
grendzy CreditAttribution: grendzy commented5ba902c4
Comment #14.0
(not verified) CreditAttribution: commentedsummarize current state