I have installed this module on my site as it was exactly what I was looking for to provide "youtube insight" like functionality. The block I've added seems to be showing properly, but when clicked on I receive an error "There was a problem retrieving the statistics". Nothing seems to show up in my watchdog.

Any ideas what this could be? I'd really like users to be able to view in-depth stats on each node.

CommentFileSizeAuthor
#2 GA_400.png32.62 KBgrendzy

Comments

2ndChanceTech’s picture

still banging my head against the wall on this one... any input would be appreciated. I'd be happy to sponsor / pay for a solution if it would get things moving, seems like it's exactly what I need for my site.

grendzy’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new32.62 KB

Thanks for testing the -dev release! Can you try the latest version and report back? I would suggest uninstalling and re-installing the module as well. Normally, failures are recorded by watchdog, for example here's one that occurred during testing:

2ndChanceTech’s picture

I'm trying the latest dev version (uninstalled and deleted folder, then installed and updated).

I try going to admin/reports/google-analytics

and get the error. When I go to my watchdog at admin/reports/dblog

There's no new entries. Am I looking in the wrong places?

grendzy’s picture

weird, sounds like you are doing things right. Are you able to add a some debugging code?


--- a/google_analytics_reports/google_analytics_reports.pages.inc
+++ b/google_analytics_reports/google_analytics_reports.pages.inc
@@ -24,6 +24,7 @@ function google_analytics_reports_summary_page() {
   );
 
   if (in_array(FALSE, $summary)) {
+    dd($summary);
     drupal_set_message(t('There was a problem retrieving the statistics.  Please review the watchdog for details.'), 'e
     return ' ';
   }

If you install the devel module, adding "dd($summary);" will dump debugging data to a text file: /tmp/drupal_debug.txt. If you upload this debugging file perhaps we can figure out what happened.

grendzy’s picture

Status: Postponed (maintainer needs more info) » Active

I think I've found something. There's some code where in_array() is used to test for failures - but since an empty array is equal to false, if there are no referrals for a page it looks like a failure. Fix coming soon...

2ndChanceTech’s picture

awesome! hopefully that's the case. I tried adding the debugging code but for some reason it's not outputting a debug.txt I'm switching vps's today, hopefully less issues after the change, and your fix!

Narvath’s picture

Does this happen to everybody? I noticed not too much people are using this module yet and do I have to do the domain management for it to work? I don't think I did it properly (https://www.google.com/accounts/ManageDomains) I somewhat have to find the certificate for my server.

grendzy’s picture

Status: Active » Fixed

This should be fixed in alpha1.

2ndChanceTech’s picture

AWESOME!! Worked right away after upload and update! Thanks so much for this module. I'll continue to test it for bugs, and such.

grendzy’s picture

Great! I actually meant to tag today's release as beta, but was a bit too tired and typed alpha instead. :-) Anyway the beta cycle will be very short, we're hoping to reach 1.0 quickly, so bug reports are appreciated.

Narvath’s picture

Yeah it worked really well for me too! Do you think there would be a way to show other kind of information in the "Google Analytics page traffic (small)" block? Because right now I think it only shows the number of views for the current page. Thank you alot for this module!

grendzy’s picture

Thanks for the feedback. The default reports are likely to stay fairly basic. For customizing the reports, you have several options:
-- Use CSS or template overrides
-- hook_chart_alter to change the display of the graphs
-- or use the API to create your own custom reports.

Future efforts for custom reports will go into #760592: Integrate with Views so Views can use Google Analytics as a data source. If we can get the views integration working it should be possible to build almost anything.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.