Share via


Azure Application Insights for WordPress sites


Introduction

Azure Application Insights is a web app monitor service that allows us to analyze the performance and exceptions of our website. In this post we will see how to add it as a plugin to a WordPress website.

Prerequisites

  • An active Azure subscription
  • An active Azure Application Insights service
  • An active WordPress blog

  Plugin Installation

Add Application Insights plugin to WP site.

Add the Application Insights plugin to the WordPress site through the wp-admin page.
From the left-hand side menu, select Plugins - Add New

https://cloudopszone.com/wp-content/uploads/2022/08/Screenshot-2022-08-18-173753.png

Search with the Keywords "Application Insights",

  https://cloudopszone.com/wp-content/uploads/2022/08/Screenshot-2022-08-18-173922.png

and Install as the image below shows

https://cloudopszone.com/wp-content/uploads/2022/08/Screenshot-2022-08-18-173955.png

Plugin Configuration

Configure Application Insights through the wp-admin page.
The configuration is quite simple.
We just have to copy the Instrumentation Key from the Azure Application Insights resource Overview blade and,
  https://cloudopszone.com/wp-content/uploads/2022/08/2022-08-19_11-19-26.png

from the left side main menu, select Settings - Application Insights,

https://cloudopszone.com/wp-content/uploads/2022/08/2022-08-18_17-42-38.png

paste the key into the Instrumentation Key textbox and click Save Changes.  

https://cloudopszone.com/wp-content/uploads/2022/08/1.png

View Data for your WordPress site

 After a few hours, we can check for website insights data from the Azure Application Insights Overview dashboard.
  https://cloudopszone.com/wp-content/uploads/2022/08/2022-08-19_11-25-34.png

Diagnose and Investigate exceptions in the WordPress site

 Azure Application Insights give several tools to diagnose and investigate failed request exceptions on the server and client sides.

**Server side

**https://cloudopszone.com/wp-content/uploads/2022/08/2022-08-19_12-07-42.png Client side
**
**https://cloudopszone.com/wp-content/uploads/2022/08/2022-08-19_12-08-55.png

See Also