Wordpress and Google Analytics: how to avoid administrative area counting?

0

How do I configure the Google Analytics Code to prevent administrator or author access to Wordpress administrative areas from being counted?

    
asked by anonymous 11.07.2017 / 23:09

2 answers

0

Most likely the plugin you use already has this option. I use Yoast SEO, considered one of the best on the market, and it already has this option to prevent counting administrators.

    
14.07.2017 / 05:37
0

If you want to do this on hand, here goes:

  • Install the plugin link

  • Insert the Footer tab:

    <? if (!is_user_logged_in()) { ?>
    <script type="text/javascript">
    ...GOOGLE ANALYTICS CODE...
    <? } ?>
    
  • 13.07.2017 / 15:59