• Resolved justgert

    (@justgert)


    First of all I love this plugin. Works like a charm. Thank you for this!

    Then my question/feature request :

    Maybe I overlooked things, but why is there no option (yet) to show the total hits or/and pageviews in the front so visitors can see how many times a blogpost is visited. For example a shortcode like this :

    [koko-visitors] and/or [koko-pageviews]

    These are already shown in the back-end. Would love the option to show these in the front end as well. Under each blogpost like: This page has been visited [koko-visitors] times.

    Would save some other plugins ?? Would love to hear about this you guys!
    Best regards,
    Gert

    • This topic was modified 1 year, 6 months ago by justgert. Reason: typo
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Lap

    (@lapzor)

    You can use this shortcode:

    [koko_analytics_most_viewed_posts]

    or with arguments:

    [koko_analytics_most_viewed_posts number=10 post_type='post' show_date=0 days=30]

    Hope that helps. If you have any questions, please let me know!

    Thread Starter justgert

    (@justgert)

    Hi Lap,

    Thank you for your reply!
    Yeah, I found those. But it is not what I meant.

    What would be really useful is a shortcode with outputs the number of visits to a blogpost. This is seen in admin section, but would like to have it under each post with a shortcode.

    For example : when I would include [koko-visitors] under each blogpost, the outcome of [koko-visitors] would be the number of visits, say : 12598

    That way we could use it like : This post has been read [koko-visitors] times.
    This would then translate in : This post has been read 12598 times.

    The information is already available in the back-end ??
    Advantages : No need for another postview counter, and finally a reliable counter which would work with every caching system.

    Best regards,
    Gert

    • This reply was modified 1 year, 6 months ago by justgert.
    Plugin Support Lap

    (@lapzor)

    Ah I see what you mean. Someone has been working on something similar, showing the total for the whole site (still not per post). They submitted a pull request but it’s not added into Koko at this time: https://github.com/ibericode/koko-analytics/pull/120

    We have requests for this on the feature request list though.

    Kind regards,

    Thread Starter justgert

    (@justgert)

    I see, yes. Also found that post a while ago.

    showing the total for the whole site (still not per post)

    Such a shame since the total per post is already available in the admin section.

    Could you pleas tell me which Koko file is used to list the totals per post in the back-end Lap?

    Plugin Support Lap

    (@lapzor)

    You’re likely more interested in this example, if you are a coder you could go from there to make your own shortcode:

    https://github.com/ibericode/koko-analytics/blob/master/src/class-shortcode-most-viewed-posts.php

    Note that our code is all there on Github, so if you are a developer feel free to browse trough it. However, here on the forum we just provide support for existing features in Koko.

    Thread Starter justgert

    (@justgert)

    Hello Lap,

    Thanks for your reply! If I would have been a coder, I would never asked in the first place haha. So no, but I will take a look at the code, maybe It will lead me to something.

    You guy’s really need a pro version with some extra’s ??

    Regards,
    Gert

    Thread Starter justgert

    (@justgert)

    Hello Lap and Danny,

    Great to see that there is a pro version now!
    Could my future request become part of the pro version eventually, or .. ?

    Best regards,
    Gert

    Plugin Author Danny van Kooten

    (@dvankooten)

    @justgert Would it help if we would show the number of visitors and pageviews in the admin bar for logged-in users when viewing a post on your site?

    If so, please vote on this feature suggestion here: https://github.com/ibericode/koko-analytics/discussions/211

    While you’re there, we have a bunch of other feature suggestions there too that you can now vote on so that we know what you want us to work on next.

    Thread Starter justgert

    (@justgert)

    Hello Danny,

    Login in users don’t see admin bar nor have access to admin section.
    For my current post views I use another plugin, so under each (public) post it say’s : This story has been read 45826 times

    Since the /wp-admin/index.php?page=koko-analytics page allready showing the amount of visitors per post, maybe it would not be very difficult to show this in the front end under each post with a shortcode.

    Ofcourse I am not a programmer and is it not easy at all. It would eliminate another plugin ??

    Thanks for your fast reply!

    Plugin Support Lap

    (@lapzor)

    There is a feature request for this, you can follow it here: https://github.com/ibericode/koko-analytics/discussions/233

    Thanks!

    Thread Starter justgert

    (@justgert)

    Cool! Thanks Lap!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Show postviews’ is closed to new replies.