Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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
**************************************
Comment | File | Size | Author |
---|---|---|---|
#3 | ga_stats_1199694.patch | 654 bytes | zzzp |
Comments
Comment #1
twohlix CreditAttribution: twohlix commentedHave you tried the latest version? I have been unable to reproduce your bug.
Comment #2
twohlix CreditAttribution: twohlix commentedClosing out since I cannot reproduce this and no more info has been provided.
Comment #3
zzzp CreditAttribution: zzzp commentedHi,
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
Comment #4
mikeinvaldosta CreditAttribution: mikeinvaldosta commented#3 worked great. Thank you!
Comment #5
Grayside CreditAttribution: Grayside commentedFixed as part of #2122793: The Uber Issue: General refactor for goodness