| 
 •   | 
 Web 2.0/AJAX Application — In Web 2.0 applications, the client’s browser does most of the processing for the application and also maintains most of the information about the state of the client. For example, an AJAX-based application makes asynchronous XMLHttpRequest calls to the web server, and the web server responds with fragments of content or raw data, which are then interpreted by the client-side JavaScript. To monitor the performance and health of the client’s browser, you need to instrument web pages in the application.  | 
| 
 •   | 
 Mashup Web Site or Application — A mashup web site or web application combines first-party dynamic content with dynamic content from third parties, such as social media sites (for example, Twitter or Facebook) and remote advertising servers. With all this extra content outside the control of your site or application, you cannot fully understand your end users’ experience of these pages without the extra information provided by browser instrumentation.  | 
| 
 •   | 
 Cloud-based Web Site or Application — Cloud environments are complex, dynamic, and elastic, which makes Sniffer deployments impractical. Browser instrumentation is currently the only way to monitor cloud-based web sites or web applications.  | 
| 
 •   | 
 Content Delivery Network (CDN) — When monitored web sites or web applications use a CDN to deliver static content, a Sniffer cannot measure how long the CDN servers take to respond to a request for an individual piece of content. Browser instrumentation provides the missing timing data, which in turn enables a Sniffer to report more accurate values for page load metrics.  | 
| 
 IMPORTANT: You must deploy an empty file named empty.txt onto your web site so that, when the instrumentation posts data to the web site, it will not result in the Object Not Found (404) response code. Failing to do so results in lots of 404 errors being generated after you deploy the javascript instrumentation.   | 
| 
 a   | 
 In the navigation panel, under Dashboards, click Administration > Cartridges > Components for Download.   | 
| 
 b   | 
 Click JS Instrumentation.  | 
| 
 c   | 
 Click Download.  | 
| 
 d   | 
 Follow your browser’s prompts to save the instr.js file.  | 
| 
 2   | 
 Copy instr.js to the same location as other scripts used by your monitored web site or application.  | 
| 
 4   | 
 Add the <script> statement shown in the following code snippet to the file, substituting in the relative path to the script in your environment. Enclose the <script> tag within the <head> tag as close to the top as possible.  | 
| 
 IMPORTANT: For the id attribute, ensure that you specify "--foglight-script--" exactly as shown, including all dashes.  | 
| 
 6   | 
 If you are monitoring individual web pages, copy the <script> statement to the other pages.  | 
| 
 b   | 
 On the navigation panel, under Dashboards, click APM > Web Sites and Endpoints.  | 
| 
 c   | 
 If the Web Sites quick view is not showing, click the Web Sites tile.  |