• Resolved ms100

    (@ms100)


    Hi today!

    Maybe an idea to exclude your own IP address from search analytics. Because right now the data is not really clean for me. Maybe you can think about this idea? 🙂

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Kris

    (@c0nst)

    Hi @ms100

    Here’s a solution you might like. The following code will exclude all users who have Administrator or Shop Manager roles from analytics:

    add_filter( 'dgwt/wcas/analytics/exclude_roles', function () {
        return array(
            'administrator',
            'shop_manager'
        );
    } );

    You have two ways to add this code to your theme:

    1. Open the functions.php in your child theme and add the code at the end.
    2.  or install the Code Snippets plugin and apply this code as a snippet.

    Regards,
    Kris

    Thread Starter ms100

    (@ms100)

    Hi@c0nst !

    Thanks. I am not always logged in when I search, but this will make de data better! Thank you, very much appreciated!

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

The topic ‘suggestion for analytics’ is closed to new replies.