How to Exclude your own visits in Google Analytics for WordPress

Adding Google analytics to your site will help you to know how people found your site ,how they explored it and how you can improve your user experience.If you are new to blogging and your WordPress blog is also brand new, you will found most of the traffic you getting to your site may from your own visit.

Google Analytics

There are different methods available for you to remove your own visit to your blog like IP blocking or even cookies etc.You can remove your own site visits in Google Analytics very easily if you are on WordPress.

Just use below code in to your footer.php file in your WordPress theme file.

<?php if (!$user_ID) { ?> Add your Analytics code here <?php } ?>

Now add your Google analytics code in the “add your analytics code here” section and save it.Now visits to your own blog will be excluded in google analytics.


Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.