Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter salsabunny

    (@salsabunny)

    Hi Jason,

    Thanks for the notes on this, and I am very excited to learn about the ability for individuals to opt in or opt out of the user specific analytics. My understanding of this law is that users must be allowed to opt in to any situation in where personal identifiable data will be used – IP address, email address, combination of other factors that could lead to being identified such as company name, job role etc. So the standard analytics from SlimStat are fairly safe, as the data is stored on the website itself (complying with the non export of EU data clause) and not externally, and the only identifiable data is the IP address which you can choose to remove. The rest, as I understand it, is aggregated and therefore not a direct problem for this law.

    When it comes to the user overview add on, individual users being able to opt out of their data being tracked/included would cover this I believe. Is this your understanding too?

    Cheers,
    Sally

    Thread Starter salsabunny

    (@salsabunny)

    Included in header.php:

    if (is_user_logged_in() && (is_page('login'))){
      global $user;
      global $user_login;
      do_action('call_my_redirect_user_by_role',$user_login, $user);
    }

    Plugin:

    add_action('wp_login','my_redirect_user_by_role', 10, 3);
    add_action('call_my_redirect_user_by_role','my_redirect_user_by_role', 10, 3);
    
    function my_redirect_user_by_role($user_login, $user)
    {       
      $role_name = $user->roles[0];
    
      if ( 'administrator' === $role_name ) {
        wp_redirect( site_url('/main-page'));               
        exit;
      } 
      if ( 'manager' === $role_name ) {
        wp_redirect( site_url('/info-page'));               
        exit;
      } 
    }
    • This reply was modified 7 years, 10 months ago by salsabunny.
    Thread Starter salsabunny

    (@salsabunny)

    Hi Jason,

    Thanks, that was switched off so that has helped – I now get results on my live install! I think the ongoing issues on my dev site must be caused by the company VPN that protects it, so all good here now.

    Many thanks for your time – much appreciated.

    Thread Starter salsabunny

    (@salsabunny)

    Hi Jason,
    Thanks for the support, the report does show up under the Audience tab now. However, the logins in the Access Log are not marked up with user names (as shown in the demo) – it is tracking the login, just not marking it up. I suspect the same issue may also be causing the user overview report to be blank, despite logging in with several users and browsing to a couple of pages each.
    Thanks.

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