• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter scribu

    (@scribu)

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

    Good job hunting!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Google Analyticator] Feature Request: Viewcount per post’ is closed to new replies.