Patent ID: 8849985

Claim:
A method for on-the-fly instrumentation of a Web site, the method comprising: receiving a request for a Web-page at a server-computer on a server-side of a network from a user-computer on a client-side of the network; retrieving an HTML document for the Web-page at the server-computer on the server-side of the network; transferring the HTML document for the Web-page to a script server on the server-side of the network on-the-fly prior to transmission to the user-computer on the client-side of the network; parsing the HTML document for the Web-page at the script server on the server-side of the network; building a Document Object Model of the Web-page at the script server on the server-side of the network; identifying at least one original JavaScript function of the Document Object Model of the Web-page for modification at the script server on the server-side, wherein the at least one original JavaScript function is configured to be executed by the server-computer on the server-side of the network; modifying each one of the at least one original JavaScript function of the Document Object Model of the Web-page identified for modification by adding additional instrumentation code and attributes to create a modified JavaScript function for each respective one of the at least one original JavaScript function identified for modification and a modified Document Object Model of the Web-page comprising the modified JavaScript function at the script server on the server-side of the network, wherein the modified JavaScript function enables the user-computer on the client-side of the network to request execution of the respective original JavaScript function by the server-computer on the server-side of the network; and transmitting an HTML document for the Web-page with the modified Document Object Model to the user-computer on the client-side of the network.