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
- <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 monitor applications with MFA using a TOTP
The MFA option is available only for applications that use time-based one-time passwords (TOTPs) as a two-factor authentication (2FA) method. In Site24x7, multi-factor authentication (MFA) is used for Web Transaction (Browser) monitors and SaaS ...
How many API calls does Site24x7 GCP monitor make
Site24x7 Google Cloud monitoring (GCP) fetches the health and performance metrics and your Google Cloud resources' data via APIs. Here is an illustrative calculation on how many API calls will be made by Site24x7 for monitoring your Google Cloud ...
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 ...