• Resolved CreaFlow

    (@jansesberger)


    Hi,

    thanks for this great plugin – i really love it ??

    As i’ve seen there’s no way for users which are not admins to display the statistics from Koko Analytics. Or am i missing something?

    I need to display the statistics including the dedicated statistics page for the user role editor. Is there a hook or something or – if not – could you implement a role selection in the settings page?

    Would be great if you could help out, thanks!
    Martin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hello Martin,

    You can use a plugin like User Role Editor to add the view_koko_analytics permission to any user role. This will allow that user role to access the Koko Analytics dashboard page.

    Hope that helps. If not, let us know please!

    Thread Starter CreaFlow

    (@jansesberger)

    Thanks for your help!

    I wrote some code into my functions.php – for those who also like to avoid a plugin for this action >>

    // koko analytics: access for editors

    $role = get_role( ‘editor’ );
    $role -> add_cap( ‘view_koko_analytics’ );

    Plugin Support Lap

    (@lapzor)

    Thanks for sharing!

    Correct code:

    
    $role = get_role( 'editor' );
    $role->add_cap( 'view_koko_analytics' );
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Koko Analytics only visible for admin users’ is closed to new replies.