• Resolved kanstead

    (@kanstead)


    Installed latest Slimstat yesterday but the page count doesn’t go past 1.
    Maintenance tab shows all is good.
    I have tried adjusting different settings but the page view count will not increase.

    Please note this is on a Corporate Intranet site as is not accessible from the Internet.

    I am using this shortcode.
    [slimstat f=’count’ w=’8242′]strtotime equals today[/slimstat]

    I am using Twenty Fourteen Theme.

    Any help or suggestions would be greatly appreciated.

    Thank you

    https://ww.wp.xz.cn/plugins/wp-slimstat/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jason Crouse

    (@coolmann)

    Hi kanstead,

    the syntax you’re using for the shortcode is not correct, that might be why you’re not getting any data. Please check our documentation for more information on how to compose our shortcodes:

    https://slimstat.freshdesk.com/solution/articles/5000631833-what-is-the-syntax-of-a-slimstat-shortcode-

    Best,
    Jason

    Thread Starter kanstead

    (@kanstead)

    Hi Jason

    I am still a bit confused understanding the shortcode.

    This is the page I want to show my counters for other specific pages.
    http://umccms.com/

    My main page above on my Intranet I want to show the counters for the Day/Week/Month on my most important web pages.

    One of those pages I want to display the counters about is this page:
    http://umccms.com/?page_id=8242

    So on my main page I need to list the counters from the web page above.
    I just cant figured it out the shortcode.

    On my main page I have this shortcode:
    Openings [slimstat f=’count’ w=’http://umccms.com/?page_id=8242′%5D%5B/slimstat%5D
    But doesn’t work.

    Sorry and Thanks

    Plugin Contributor Jason Crouse

    (@coolmann)

    Hi,

    as you can see on this page

    https://slimstat.freshdesk.com/solution/articles/5000631848-examples-of-frequently-used-shortcodes

    the ‘w’ attribute of our shortcode allows you specify what dimension or metric you would like to use. So you want to COUNT ( f = count ) … what? Count IP addresses, count users, count search terms? If you would like to count pageviews, then the dimension is “id” : w=’id’.

    So far you have:
    [slimstat f='count' w='id'] ...

    Now, the content in BETWEEN the opening shortcode tag and the CLOSING tag determines your condition:

    [slimstat f='count' w='id'] WHERE RECORDS SATISFY THIS CONDITION [/slimstat]

    You can use almost all the dimensions plus other special keywords to build your condition. Let’s say your condition is: count all the pageviews where the permalink contains 8242 (or any string of your choice). This is how you write the condition:

    post_link contains 8242

    So putting it all together:

    [slimstat f='count' w='id']post_link contains 8242[/slimstat]

    I hope this helps 🙂

    A review for Slimstat would be a nice way to say thank you:
    https://ww.wp.xz.cn/support/view/plugin-reviews/wp-slimstat#postform

    Best,
    Jason

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Page view counts not increasing’ is closed to new replies.