do_action(‘pageviews’) only outputs a placeholder for the views.
You will need to enqueue the scripts and make sure that some crucial JavaScript is running on the page.
PageViews relies on this to both increment the counter and display it.
Have you added add_action( ‘after_setup_theme’, function() {
add_theme_support( ‘pageviews’ );
}); to the theme? This will very probably add everything that is needed in terms of CSS and JS.
https://github.com/pressjitsu/pageviews#customization
Hello,
Thanks for replay and yes i added
add_action( ‘after_setup_theme’, function() {
add_theme_support( ‘pageviews’ );
}); to theme file.
Without looking further at your setup it’s impossible to tell.
Can you please email support@pressjitsu.com with further details?
Thanks.