Instrumenting a Web Site using IIS URL Rewrite
IIS URL Rewrite enables Web administrators to create powerful rules to implement URLs that are easier for users to remember and easier for search engines to find. By using rule templates, rewrite maps, .NET providers, and other functionality integrated into IIS Manager, Web administrators can easily set up rules to define URL rewriting behavior based on HTTP headers, HTTP response or request headers, IIS server variables, and even complex programmatic rules. In addition, Web administrators can perform redirects, send custom responses, or stop HTTP requests based on the logic expressed in the rewrite rules.
To enable the auto-injection of the JavaScript code snippet into IIS-based web sites/web applications, you need to use the URL Rewrite module. However, before attempting to use this module, you need to make sure that a few pre-requisites are fulfilled.