How to Setup Pingdom Real User Monitoring in WordPress

In this post shows you how to add Pingdom Real User Monitoring to WordPress.

What is Pingdom?

Pingdom is a uptime and performance monitoring service that has monitoring probe servers all over the world.

What is Real User Monitoring

Real User Monitoring gives you insight into performance and helps you answer questions like, how does your website really perform from a specific country or web browser.

Adding Real User Monitoring in WordPress

Adding a new site to the Real User Monitoring in Pingdom

Then you are given a script to add into the head section of your website


var _prum = [['id', 'XXXXXXXXXXXXXXXXXX'],
             ['mark', 'firstbyte', (new Date()).getTime()]];
(function() {
    var s = document.getElementsByTagName('script')[0]
      , p = document.createElement('script');
    p.async = 'async';
    p.src = '//rum-static.pingdom.net/prum.min.js';
    s.parentNode.insertBefore(p, s);
})();

The javascript above must be placed between two script tags


Then add the script into this file in the head section

/public_html/blog/wp-content/themes/your_theme/header.php

Beware caching

If you are running any WordPress caching plugins remember to clear the cache

Further Reading



Comments

No comments yet.

Add Yours

  • Author Avatar

    YOU


Comment Arrow




About Author

Robert

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning hands down.