I become only data in a view for "Page Views in the past 24 hours" and "Page Views in the past 31 days". All others catgories are empty.

**************************************
Page Views in the past 24 hours: 68
Page Views for all time: 0
Page Views in the past 31 days: 1,244
Page Views in the past 7 days: 0
Page Views in the past hour: 0
**************************************

CommentFileSizeAuthor
#3 ga_stats_1199694.patch654 byteszzzp
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

twohlix’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried the latest version? I have been unable to reproduce your bug.

twohlix’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing out since I cannot reproduce this and no more info has been provided.

zzzp’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.0-beta1
Component: Miscellaneous » Code
Status: Closed (cannot reproduce) » Active
FileSize
654 bytes

Hi,

I've encountered this problem in the wild too and have been able to reproduce it.

It appears that occasionally the Google Analytics login is rejected or the data set returned doesn't have any usable urls in it. You can see the data set problem happening if you set the update count to 1 (this equates to on the site I'm working with. I suspect increasing the update count past 100 might mitigate against this, but then the update slows down too much.

There is a code problem here, in that ga_stats_update_counts() doesn't check if there is any data returned before deleting the existing data. If you're doing multiple metrics and one returns but another doesn't you end up with missing data.

In my set up, I'm using just the one metric so I've attached a patch that fixes the problem for me, which might be of some help to others.

Let me know what you think :)

Jules

mikeinvaldosta’s picture

#3 worked great. Thank you!

Grayside’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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