Closed (won't fix)
Project:
Google Analytics Reports
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Plan
Assigned:
Reporter:
Created:
30 Mar 2011 at 23:35 UTC
Updated:
1 Aug 2015 at 16:19 UTC
Jump to comment: Most recent
Comments
Comment #1
raspberryman commentedTentative first draft:
v1.0 Objectives
#1111342: Fatal error: Call to a member function getMetrics() on a non-object
#1111348: warning: Invalid argument supplied for foreach()
#1111350: Invalid argument supplied for foreach() #2
#1111352: Reduce drupal_set_message() calls, replace with watchdog()
#1111356: Update project page with new copy and screenshot of report interface
#1111358: Create automated tests
#1111360: Investigate locking API to help control quota
#1111362: Polish report output
#804768: No output
#551146: Division by zero error when viewing a report and bounce rate is zero
#877860: make google_analytics_api_profile_id a optional parameter
#733376: A Google Analytics API method has been called that requires access to a Google account.
#934334: Wrong link to the administration page
#695480: Improve permissions for api and reports modules
#1089484: hook_perm() has the wrong hook
#550948: Automatically select correct site
#679008: Cache requests
#1021792: Error granting access during setup "Malformed request"
#1063532: Support Domain Access
#679028: Why is report generator hidden?
#1016668: Port to Drupal 7
v1.1 Objectives
#1111364: Restart module as "Google Analytics Reports"
v1.2 Objectives
#1111368: Move to OAuth
#757504: Integrate with Statistics
#760592: Integrate with Views so Views can use Google Analytics as a data source
Comment #2
hass commented+
Comment #3
raspberryman commentedI've written a new, smaller class to replace gapi. It uses OAuth, caches results, produces more useful and public objects, and supports users with multiple domains verified with Google.
Check it out: http://drupalcode.org/project/google_analytics_api.git/commitdiff/d50f5e8
Comment #4
raspberryman commentedHere is a basic sample report using the new library. This code is just to get the juices flowing :)
Comment #5
JGonzalez commentedHow are you implementing this code? Even when trying to implement this, ignoring the chart items and doing a print_r($data) I'm receiving errors, mainly ones like this:
Warning: Invalid argument supplied for foreach() in eval() (line 14 of /srv/www/mysite.com/public_html/includes/common.inc(1694) : eval()'d code).When taking a step back and printing the results of the GA feed object, I get the following:
Sorry to inundate this thread - I can go ahead and make a new post if you'd like
Comment #6
raspberryman commentedNo worries - things have changed a bit since that post above. Namely, we use Google's own naming scheme rather than our own. So instead of "date", you'd use "ga:date". We're trying to reduce the abstraction. To learn more about the fields available to you, visit: http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.html
Development is reaching our v1.0 objectives, and near release, I'll write some documentation and samples to produce a variety of reports.
Comment #7
JGonzalez commentedYea I was able come up with some nice widgets and reports after I figured out the use of the 'ga:' scheme. Hopefully I'll be able to post some snippets and samples in the future as well.
Comment #8
raspberryman commentedYes, please do! In fact, if you figure out a cool report or funky trick while creating your widgets, please message me or post here, and I'll add your idea to the new documentation. I'm excited to see the smart things people do with this code.
Comment #9
grendzy commentedRaspberryman and I discussed the remaining issues today:
grendzy:
raspberryman:
Comment #10
grendzy commentedComment #11
plazik commented7.x-1.x is unsupported. Please upgrade to 7.x-3.x.