Woopra Analytics allows administrators to exclude statistics based on a number of criteria (IP address, user names, etc.) However, for websites with only one administrator, a better approach would be to prevent loading the Woopra javascript (JS) in the first place whenever the admin accesses the site.
For logged in users, WordPress has assigns a value to the $user_ID variable; therefore, you’re interested in serving the Woopra JS to people who do not have this variable defined. Insert the following code into your theme’s footer.php file.
<?php if (!$user_ID) { ?>
<script src="https://static.woopra.com/js/woopra.js" type="text/javascript"></script>
<?php } ?>



Leave a Reply