This worked for portal engine and only for CMS.File pages - it was a special page type and there was some code tied to it in web analytics. In MVC development model this page type is no longer available because all the logic is done in your MVC app and this app is also serving the content to the users. If you have some page type for the files or some other flag how to recognize them when viewed, you can create a custom analytics tracking.