[ad_1]
Plugin Support
Lap
(@lapzor)
You can use the [koko_analytics_counter] shortcode to show the number of visitors to the current page.
Without any arguments it will default to visitors over the past 10 years for the current page.
It takes 3 optional arguments:
days: Show count over the last N days. Defaults to “3650”.global: Whether to show the global count (for the entire site) or for the current page only. Defaults to “false”.metric: One of “visitors” or “pageviews”. Defaults to “visitors”.
Example use with arguments:
[koko_analytics_counter days=”30″ metric=”pageviews” global=”true”]
$default_args = array(
'days' => 365 * 10,
'metric' => 'visitors',
'global' => false
)
