› Forums › Post Pay Counter PRO › Support › Need to pull Google Analytics More Often Than Daily
We are based in Europe with a GMT+1/GMT+2 time zone - support replies may be delayed due to time zone differences with your country.
Tagged: analytics
- This topic has 6 replies, 2 voices, and was last updated 10 years, 10 months ago by
Nathan Chase.
-
AuthorPosts
-
January 16, 2015 at 7:01 pm #33015
Nathan Chase
KeymasterHi Stefano,
I have manually set up two cron job schedules to try to force PPCP to pull Google Analytics stats more often (daily is too infrequent).
I have one:
ppcp_analytics_data_update (every 3600 seconds)
ga_cron_update (every 3600 seconds)I’m still not seeing updates to the Views stats. Is there something different I can do to have PPCP grab stats from Google Analytics more often? Can this be a toggleable feature available in the options to specify how often Google Analytics data should be pulled (every 15 minutes, every 30, every hour, daily, weekly, etc.)?
Thank you.
January 16, 2015 at 8:06 pm #33027Stefano
KeymasterHi Nathan,
the system you put up doesn’t work just because PPCP checks when the last request was made, and doesn’t allow a new one before it’s the day after. Unfortunately, there is no way (I have not found one, at least) to have data update more often than daily. Should you ever find a way, please do let me know!Have a nice day,
StefanoJanuary 17, 2015 at 3:58 pm #33096Nathan Chase
KeymasterWell, what is it in your code that “doesn’t allow a new one before it’s the day after”? Can’t that be removed, or edited to poll based on a number of seconds/hours instead of by day?
If PPCP is checking when the last request was made, can’t that check be refined to check based on something other than current day, but instead the number of total seconds elapsed since the last check?
January 18, 2015 at 10:05 am #33163Stefano
KeymasterPoint is that Analytics API don’t allow to specify a time when making a request, you can only ask for stats for a specific DAY, but not a time. You can’t say “give me data from today 2pm to today 4pm”, you can only say “give me data for today”. The Analytics time range parameters accept stuff in the form YYYY-MM-DD.
Does this clarify?
Have a nice day,
StefanoJanuary 18, 2015 at 4:43 pm #33179Nathan Chase
KeymasterSure, that’s fine. You could still poll Google Analytics for the current day multiple times throughout the day and get new and up-to-the-minute data.
I’m just saying that I check Google Analytics multiple times within a day and see various posts gaining views 24 hours before I see that reflected in the Views stats in PPCP.
My multiple authors are interested to be able to check in throughout the day and see how their posts are performing, and also what they’re getting paid as a result of that performance – but those stats don’t change until a full day later.
January 18, 2015 at 7:33 pm #33186Stefano
KeymasterYes, you could probably do that. This would take in a lot more data to be sorted out and evaluated, but you could probably do it and come up with reliable data at the end of the day, other processing the multiple requests you’ve made through the day or by discarding those data and making a final requests for the whole day.
However, I’m afraid I don’t have time to commit to this in this period, sorry!
January 24, 2015 at 12:06 am #33582Nathan Chase
KeymasterThanks for the responses. Hopefully we can see this feature in an update soon. Thank you for your consideration.
-Nathan
-
AuthorPosts
- The topic ‘Need to pull Google Analytics More Often Than Daily’ is closed to new replies.