Monitor AJAX calls in traditional web apps

How do I monitor Ajax calls in my traditional web applications

In general, Ajax calls are monitored by default for Single Page Applications (SPA) in Real User Monitoring (RUM).  

To monitor Ajax calls in traditional web applications(though you have inserted the RUM script in the header/footer), kindly follow the instructions given below to replace the existing code

  • Log into your Site24x7 account > RUM > Your application
  • Click on 'Copy Web script' and copy the RUM key - this is your appkey
  • Assign the appkey to the variable rumMOkey in the following script
  1.  <script type="text/javascript">var rumMOKey='<appkey>';var site24x7rumProp =       {};site24x7rumProp.sendAjaxCalls=true;site24x7rumProp.includeCrossDomainAjaxCalls=true;  (function(){if(window.performance && window.performance.timing && window.performance.navigation) {var site24x7_rum_beacon=document.createElement('script');site24x7_rum_beacon.async=true;site24x7_rum_beacon.setAttribute('src','//static.site24x7rum.com/beacon/site24x7rum-min.js?appKey='+rumMOKey);document.getElementsByTagName('head')[0].appendChild(site24x7_rum_beacon);}})(window)</script>
  • Copy and paste the script in all the HTML pages of your web application, where you want to track the AJAX calls. By adding so, you can track your web page performance along with the AJAX calls involved. 
  • Metrics can be tracked under AJAX calls tab.
Note: These AJAX calls will be considered as pageviews.  


    • Related Articles

    • Site24x7 Real User Monitoring (RUM) - Data Collection

      When you include Site24x7 RUM beacon script in your web pages, the following data is collected. All data that's being collected is in accordance with GDPR compliance.  Performance details of web page load time - Metrics like response time of web page ...
    • Real User Monitoring (RUM) Licensing

      RUM licensing is based on Pageviews. Site24x7 includes RUM in all the plans available. The number of Pageviews and Sites provided differs based on the plan. Please check the below list for more details. Plan type Plan includes Starter 100K RUM ...
    • How to install packages to support Web Transaction (Browser) monitor in Linux On-Premise Poller

      To support Web Transaction (Browser) monitor on an On-Premise Poller, you can execute the following command in the terminal to install packages in CentOS 7.0 to 7.8 or in RHEL 7.x. Note: The Installation is supported only on 64-bit OS. Execute the ...
    • How to monitor an intranet application using RUM?

      To monitor an intranet application using RUM, follow the below steps: Check if you are behind a proxy server or firewall to ensure no connectivity issues exist between your browser and Site24x7's servers. In case of connectivity issues, enable the ...
    • Site24x7 Real User Monitoring - Data collection

      When you include Site24x7 RUM beacon script in your webpages, the  following data are collected . All data that's being collected is in accordance with  GDPR compliance .   Performance details of webpage load time - Metrics like response time of ...