1. Open IIS and go to your website and click the “Web Site” tab.  Make sure that “Enable HTTP Keep-Alives" and “Enable Logging” with the “W3C Extended Log File Format” option are checked.
  2. Also click on the “Properties” button for that format and record the name of the folder where the log files are stored (you will need to enter this later on when turning on the Statistics in Commerce Manager).
  3. Change permissions on that IIS log folder to give “Network Service” read and write access (i.e. C:\WINDOWS\system32\LogFiles\W3SVC1).
  4. In the “Logging Properties” window, select the “Advanced” tab and put a check box beside all items under the “Extended properties” section.
  5. Click the “Advanced” button and make sure to put a host header if you are running multiple sites on one web server.
  6. Click the “ASP.NET” tab and make sure you have installed and are using .NET 2.0.
  7. In the “Documents” tab, be sure to include Default.aspx in this list since that is the default page used by the ECF.
  8. In the “Home Directory tab,” browse to the location where the web sites files reside.  Check the following boxes: Read, Log visits, and Index this resource.
  9. For “Execute Permissions,” select “Scripts only.”  In addition, if you have multiple sites running on the same server, make sure to put each site in its own Application Pool.
  10. To turn on Statistics, go to your Commerce Manager and browse to Configuration\Site Settings\Services and click “Statistics.
  11. Select the Class Name – “Mediachase.eCF.Plugins.Services.Statistics.SpyIISLogService.”
  12. Select the “Site name” to correspond to your website URL.
  13. In the “Path to IIS Logs,” enter the path to the IIS log files that pertains to the website recorded in Step #2 (i.e. C:\WINDOWS\system32\LogFiles\W3SVC1\ex*.log).
  14. Check the box “Enabled” and click the “Save Changes” button.
  15. Troubleshooting tip: If statistics is still not working, check to see if Mediachase.WebStatistics.dll, Mediachase.ImportIISlog.dll and Interop.MSUtil.dll are present in the Publicstore/bin folder; if not, these can be copied manually.