One of the most targeted goals when optimizing a website for page load speed is to get a good score on Google PageSpeed Insights test. But it is not enough to work hard on optimization, achieve a good score and go to sleep. It is essential to periodically monitor score changes as a website evolves and undergoes changes over time which affect this metric.
Here’s a little script that will allow you to automatically track Google PageSpeed Insight score and be alerted if it falls below a custom value.