• Hi,
    Thank you for this great plugin. It provides a very convenient access to this important metric both on the front end and on the back end. The only annoyance is that it hits the free API limit very quickly.

    I have a site with tens of thousands of pages (from the last 17 years) and hundreds of thousands of pageviews every month. New content gets many hits for the first few days, but only a handful of old pages/posts get more than a few hits a day.

    I use WP Super Cache to speed up the site, but I still exceed the API limits before noon. I guess the plugin tries to refresh numbers for all the pages regardless of their age or expected view number changes.

    What if the plugin would sort the pages into several groups based on the traffic they get? New and often changing traffic could get hourly updates, while old content could be updated once a week. After every update a the plugin could calculate a page view rate for each page, and „schedule” the next update accordingly. (I know it’s not scheduling, but it could select the pages to be updated based on the calculated rates and the last update.) There should not be hard wired rate limits, as all sites differ, but the plugin should allocate the free google api-s in a way that no matter how small or large the site is, the stats get updated at least once a week.

    What do you think of this as an option for the plugin?

    https://wordpress.org/plugins/google-analytics-post-pageviews/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author maximevalette

    (@maximevalette)

    Hi,

    Thanks for your message and your suggestion. I agree that’s something I could add. In the meantime you can still increase the cache timeout.

    Cheers

    I agree with this suggestion. You could even filter it by the age of the post/page.

    As in, anything newer than 3 days old gets updated hourly, from 3 to 30 days gets updated every 4 hours, and anything older than that updated every week.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Smarter use of limited API requests’ is closed to new replies.