Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module requires Google chart API. That module has a warning:
The Google Chart Tools: Image Charts API was deprecated by Google on April 20, 2012 and will be shutdown April 20, 2015. Do not build new functionality using this module.
The Charts module provides access to the "new" Google Interactive charts. Please migrate your sites to it.
Could you please update this module to work with the new Charts module, instead of the Chart module?
Comment | File | Size | Author |
---|---|---|---|
#28 | ga_reports-chart-to-charts-2169159-28.patch | 46.72 KB | saltednut |
#26 | interdiff.txt | 1.25 KB | saltednut |
#17 | Google_Analytics_Summary_page.png | 78.11 KB | Plazik |
#17 | google_analytics_reports-migrate_from_chart-2169159-17.patch.patch | 45.48 KB | Plazik |
Comments
Comment #1
ailgm CreditAttribution: ailgm commentedComment #2
mattew CreditAttribution: mattew commentedThis module is totally out of date if not updated to use Googe Interactive Charts.
When the old Chart API will be shutdown by Google, this module will stop working.
Comment #3
arua13l CreditAttribution: arua13l commentedfollowing
Comment #4
marcoka CreditAttribution: marcoka commentedyes that is true. i am interested in this too.
Comment #5
Plazik CreditAttribution: Plazik commentedMarked #2366737: Port to Google Chart Tools as duplicate of this issue.
Comment #6
Plazik CreditAttribution: Plazik commentedWhich module we should use for charts?
Comment #7
JadH CreditAttribution: JadH commentedWould it be possible to give the users the option to choose which library?
Comment #8
grom358 CreditAttribution: grom358 commentedI looked into Charts and even though it may have more installs I found Google Chart Tools much better, as it exposes the Google Chart options and matches the documentation that google provide. Charts only supports a subset of the API (I assume as result of supporting two charting libraries) and I wasn't able to convert the existing charts to match.
The patch I attached also requires small patch to Google Chart Tools to support the AJAX loaded blocks.
Comment #9
grom358 CreditAttribution: grom358 commentedFixed up missing trailing comma on setting arrays.
Comment #10
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedTo whom it may concern: I recently became a new co-maintainer of the chart module. Refer to the related link I just added to this issue for more details about what I'm trying to achieve.
Moving from chart to charts is the migrate approach mentioned in that issue, one of the available options that I seem to recognise in some of the comments in this issue here. What isn't clear to me yet due to insufficient experience with chart and charts (sorry!), is what the "impact" of such migrate approach is. Therefor I'd appreciate if anybody could, at least briefly, answer these questions about that:
Last but not least, checkout the Comparison of contributed modules that I created recently, which contains details about other modules available for creating charts. Such as the Forena module, of which I'm a co-maintainer also and which apart from reporting also facilitates charting, using the SVG Graphs library for now (not related to google-whatever).
Comment #11
Plazik CreditAttribution: Plazik commentedThis module use chart module to display one chart on reporting page and in block. These features are hardcoded so users can't change it without changing code in module. I'm planning to rewrite module and build reports based on Views because we have great Google Analytics Views module (part of Google Analtyics Reports), see #2368151: Build reports in Reports module on Views.
So, the main feature for the chart(s) modules is support Views. Charts module support it. Will Chart module support Views?
Comment #12
fenstrat@Plazik what's the latest on the charts module support? The chart module was recently marked as unsupported and I'm just starting to look at possible migration paths. Also, charts support is pending support for oauth2 as per #1678306: Add Support for OAuth2 Authentication - correct?
Comment #13
Plazik CreditAttribution: Plazik commented@fenstrat hello, sorry for delay. I haven't time to update this module recently. I've finished about 50% in this issue and I'm planning to finish it as soon as I can.
Anyway you can build your own views reports with Google Analytics Reports Views and Charts modules.
Comment #14
Pierre.Vriens CreditAttribution: Pierre.Vriens at In Petto commentedRe #12: that 'was' indeed the case about 20 hours ago, however that is no longer the case. Refer to #2376179-8: Chart 7.x-3.x Release for more details. Which also includes links to other issues with details about how we plan to move forward.
Comment #15
fenstrat@Plazik No worries, thanks for the update. And yes, migrating to charts does seem like the logical path here. If I get a moment I will try building that view.
@Pierre.Vriens Sorry, I'm not sure what you mean by it 'was' the case. I'd already read 2376179. #2376179-7: Chart 7.x-3.x Release makes it clear that all chart module releases have been marked as unsupported (a decision I'd agree with). https://www.drupal.org/project/chart also demonstrates that - it shows no releases.
Comment #16
jaydee1818 CreditAttribution: jaydee1818 commentedThe Google Chart Tools: Image Charts module is now officially "unsupported" (see attached).
Comment #17
Plazik CreditAttribution: Plazik commentedNeeds review for first part of patch (converted Google Analytics Summary page and block into view).
Comment #18
Pierre.Vriens CreditAttribution: Pierre.Vriens at In Petto commentedRe #15: please visit the new comments in #2376179-11: Chart 7.x-3.x Release and Refer to #2376179-13: Chart 7.x-3.x Release. Clear enough that chart is NOT unsupported, and that there is again a release for both D6 and D7?
Re #16: that info is outdated again, because of what I wrote in #2376179-11: Chart 7.x-3.x Release.
For the sake of understanding: the temporary "unsupported" status a few days ago happened outside my control (I was not aware of it, and had not been contacted about it by anybody; A pitty, but that's what happened).
PS to Plazik, about #17: Seems like you made a lot of progress! Curiousity: why the dependency on "charts_google" ?
Comment #19
Plazik CreditAttribution: Plazik commentedBecause it works out of the box.
Comment #20
fenstrat@Plazik thanks for your work here. Any chance the dashboard block could be kept via a callback that uses views_embed_view()? That wouldn't break the block in a potential 7.x-1.4 release.
@Pierre.Vriens thanks for reactivating the chart releases for now. I'd still agree that a move to charts for google_analytics_reports is a good idea here.
Comment #21
Pierre.Vriens CreditAttribution: Pierre.Vriens at In Petto commentedTo @fenstrat (Saul), about #20, just to make sure there is no misunderstanding: of course I can understand that, I also think that's a good idea, and I don't have a problem with that, don't worry. Because in the end, "my" goal is "Chart 2.0". Which module namespace is used for that is really not important to me. @Plazik must know where I'm coming from, and it is actually he who was one of the first users to suggest to me to consider becoming co-maintainer of charts also. I doubted at first, but now, a few months later I'm happy I did. I haven't really "contributed" a lot of commits in charts so far, but at least I'm happy with these results I achieved so far:
Next on my list is to get that RC1-release finalized, which I had hoped to finish before already. But since in the meantime the chart-deadline has come close, and because it's a fairly lonely adventure (not a lot of help from other contributors, not for charts, not for chart), I've no other choice then to give "chart" the highest priority these days (charts is in good shape I believe, too bad for the rc1-status right now, that will get resolved soon also, after the chart deadline is gone). Recent "reported installs" for charts seem to indicate to me that many users agree with me (I'm waiting for the 10K mark to show up very soon now, would be a great Easter event if it would happen next Sunday, no?).
And then there is Yandix Metrics, who is also moving from 'chart', to 'visualization' (of which I am also a co-maintainer, though I haven't had a lot of time to work on contributing to that module). So with only these 2 "huge" chart users moving away from chart, I start to feel a little more comfortable regarding the remaining reported installs for chart. Though I'm still unsure what the D6 sites are going to end up with (check the chart usage statistics, to understand what I mean). Just so that you know: I do not want to let the D6 sites down, at least not for as long as D6 core is supported.
Also, I can't wait for the day that, because of the upcoming GAR-release, charts is going to take over from chart as it relates to "most reported installs" (because that is what I predict is going to happen ...). Unless people start to realize in the near future what chart 2.0, to me, is really all about: pick from the list charting engines that fit best your needs, either because of features, or because of licensing needs. Just don't expect chart to support Google Charts (the new ones) or Highcharts, because that is what charts is all about (maybe some day we'll consider a module dependency from chart to charts to also support those engines). Makes sense?
Hang on for more roadmap-related docu to show up soon, OK? If you can't wait: part of it I documented already in some recent comments in chart or charts issues.
Comment #22
fenstrat@Pierre.Vriens thanks for that background info. Our chart(s) usage is very simple at the moment, i.e. just for google_analytics_reports, hence my theory on switching to charts due to the fact that is working now. Unfortunately I've not got the bandwidth to step into the whole chart/charts landscape debate, however I do wish you luck with your roadmap.
Comment #23
saltednutThe patch in #17 works well for us, but there is an issue with converting the summary page to a view. It removes this critical check.
Because the check is not happening, one sees a cascade of errors when trying to visit the reports summary before authentication.
Comment #24
Plazik CreditAttribution: Plazik commented@brantwynn thank you for bug report, I'll fix it in the next patch.
Comment #25
saltednutHere's a dump of the type of errors we see, for those following along. :)
Comment #26
saltednutPatch and interdiff attached with the check moved into the views plugin's execute method.
Marking as 'Needs Review' in case there are any automated tests. #20 still applies though. This only fixes #23-#25
Comment #27
saltednutEdit: Please ignore patches #26 and #27 - use the patch from #28
Comment #28
saltednutAnd I just realized that #27 was missing the new views file... Interdiff from #26 still applies. Please ignore the other patches for this one.
Comment #29
dobe CreditAttribution: dobe as a volunteer commentedSo I got this working in conjunction with the patch I created at: https://www.drupal.org/node/1678306. It seems to work well. I had to make some changes to this patch based on what was applied there. Not sure how we want to handle it. Basically when applying the other patch and then trying to apply this patch. oauth_token check's need to be "access_token" checks now. The other thing is I just manually removed the page callback that this patch was removing (It failed probably because the other patch is changing "oauth_token" to "access_token"); Other then that I would appreciate you doing the same so we can get both of these RTBC.
Comment #30
dobe CreditAttribution: dobe as a volunteer commentedI have combined all the patches so it is just one. It will hopefully make it easier for applying so we can get this to dev.
Comment #31
Plazik CreditAttribution: Plazik commentedFixed in #2488754: OAuth & Charts, Integration.
Comment #32
Plazik CreditAttribution: Plazik commentedComment #34
cthshabel CreditAttribution: cthshabel commentedLeaving another note here of my working configuration so others can ensure they are at the right versions:
Drupal Core 7.38
Google Analytics Reports 7.x-3.0-beta2+5-dev
Charts 7.x-2.0-rc1
NOTE: Charts 7.x-2.0-rc1+5-dev (development branch)- breaks the multiple fields (Pageviews, Sessions, etc) on a single chart. So, I had to "downgrade" to the older master branch 7.x-2.0-rc1. This threw me off because all the recent development on Google Analytics Reports module. I was expecting there to be required changes in the development branch on Charts. False.
I looked at both this issue and the #2488754: OAuth & Charts, Integration to catch up and figure out what could be the problem.
This configuration gives outputs like the Google Analytics Reports summary page looks on Plazik's screenshots (as seen in comment #17 above)
Thanks again everyone!
Comment #35
Plazik CreditAttribution: Plazik commented@cthshabel this issue is fixed. Please open other one with your post.