WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Google Analyticator] Feature Request: Viewcount per post (3 posts)

  1. scribu
    Member
    Posted 4 years ago #

    First of all, I'd like to say that I love the Google Analytics Summary" dashboad module!

    Since you already have authentication and retrieval handled, I was wondering if you would consider adding a function that retrieves the total viewcount of a certain post. Something like:

    function ga_get_viewcount($post_id)

    You could cache the viewcount of each post in a custom field.

    Or maybe I could make a child plugin...

    What do you think?

  2. cavemonkey50
    Member
    Posted 4 years ago #

    I have received a ton of requests for this feature before, and it is very high on the top of my list for new features. In fact, I really want this feature myself, so I can assure you the feature is coming.

    Right now my holdup has been the initial system I designed to access the Analytics API isn't that great. Caching support is extremely limited, and overall isn't a great system to expand into future API uses.

    I have a new system prototyped out that will solve the caching issues with the current system, while allowing retrieval of any stat. My vision for the future is this system will allow anyone to include any stat in their theme through a simple function call like:

    ga_get_postStat($post_id, 'views', '30');

    Unfortunately, my life has been kind of crazy lately, so I haven't had a lot of time to put into Google Analyticator. I just graduated college, and I'm still hunting for a job, so once I get that sorted out, I'll be back in the plugin game. Thanks for the request.

    In the mean time, I do have an experimental function to grab the viewcount, but it lacks caching and will most certainly disappear once I get the proper system up and running. Look at google-analyticator.php. The function should be one of the last ones at the bottom.

  3. scribu
    Member
    Posted 4 years ago #

    Wow, thanks for the detailed response. I'll wait for the new system then.

    Good job hunting!

Topic Closed

This topic has been closed to new replies.

About this Topic