Hi All,
I monitor the performance of my site with Google Analytics. I decided to take a look at the traffic that my admin pages are getting as well (or attempts to hack). I'm posting this here for the benefit of all.
I had to place the code in two places. For both files the code is placed immediately above the </body> tag.
- /wp-login.php - to monitor attempts to access admin pages.
- /wp-admin/admin-footer.php - to see the traffic that your admin pages receive.
Note that these files will likely get over-written during your next version upgrade, so you'll need to place the code each time you update your site.
Chris