Question about realtime – it’s not working for us
-
Hello again,
Thanks for a great plugin. I have a question about the realtime top option:
Realtime Top: Enables the fetch of the most visited posts in realtime from Google Analytics in the local DB. Default: Disabled
I have checked this box, and the ‘Daily Top’ also.
I’m using this code:
<?php if ( function_exists( 'toplytics_get_results' ) ) { $toplytics_args = array( 'period' => 'today', // default=month (today/week/month) 'numberposts' => 5 // default=5 (min=1/max=250) ); $toplytics_results = toplytics_get_results( $toplytics_args ); } ?>
Which provides me with a pretty unchanging list of posts (that don’t seem to match up in Google Analytics for either today, or yesterday! It’s close but I can’t see what period it is selecting?).
If I uncheck the ‘Daily Top’ then it times out when trying to do an ‘Update Top’.
So my questions are:
Do I need to check Today and Reatime in settings? Or just realtime should work?
Does the Realtime option require extra scope permissions in the oAuth connector other than ‘Google Analytics API /auth/analytics.readonly -See and download your Google Analytics data’?
As I’m not using the widgets, but the code above, do I need to set the ‘today’ to something else to enable the realtime option? Or do anything else?
If I can’t get realtime to work, then is the ‘today’ option the last 24 hours, or the last complete day – i.e. from now backwards 24 hours, or the complete day before, or maybe from midnight until now – you see what I’m getting at!
Essentially it seems like the list I’m getting doesn’t change throughout the day, and we’d like it to!
Ralph
The page I need help with: [log in to see the link]
- The topic ‘Question about realtime – it’s not working for us’ is closed to new replies.