How to exclude my own access from Pingdom RUM reports
I enabled Pingdom RUM (Real User Monitoring) for my WordPress blog some time ago, but I didn't like the fact that it counts my own access (hits I make) and thus the results have been skewed. It wouldn't be a big deal if it's an established site with constant access, but in my case, I am just starting the blog and the number of hits I make is so high that these cannot be ignored.
I updated my Pingdom RUM code so that my hits will not count toward the RUM report.
It's just simple; I enclosed the original RUM code snippet with IF clause like this:
<?php if( !current_user_can('administrator') ){ ?>
<script>
var _prum = ....
(code)
....
</script>
<?php } ?>
This just works because I am the only administrator, and any hits that should count are non-admin. It's now "real user" monitoring, excluding administrator :-)