• Resolved Pasifik115

    (@pasifik115)


    WordPress stats

    I want to show the author statistics. How can I do it?

    exampla function code:

    function render_author_stats($author_id) {
    $args = array(
    ‘days’=>–1,
    ‘limit’=>–1,
    ‘author_id’=>$author_id
    );
    $result = stats_get_csv(‘views’, $args);
    $views = $result[0][‘views’];
    return number_format_i18n($views);
    }

    https://www.ads-software.com/plugins/jetpack/

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

    (@csonnek)

    Happiness Rocketeer ??

    Can you clarify which one you mean? Do you want to have the Author have access to see the stats? Or do you want to filter stats down by author for your own use?

    If you want the author to have access, just click “configure” next to the stats module in Jetpack -> Settings and enable access for their user account level under the “Report visibility” section.

    If you want to view stats by author, we already track that on the enhanced stats page on WordPress.com: Screenshot – https://d.pr/i/1lyfD

    I hope that clarifies things!

    Thread Starter Pasifik115

    (@pasifik115)

    Thanks for the answer.

    My purpose on the picture to show the next one theme. The author counts in the author’s writings show that the total number of times the read.

    Example themes Twenty Sixteen:

    URL: https://vsback.com/author/omermword/

    Author ?mer M. 207,871 post views

    I want him to see visitors.

    Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer ??

    Thanks for clarifying! I’m afraid it’s not possible to distill that data down to visitors – we only track views per author, not the corresponding visitor statistics.

    I hope that clarifies things!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress stats’ is closed to new replies.