Tracking of non-served files

Is it possible to use piwik to track non-served files like if I opened an html file straight from the browser assuming I had file-based cookies enabled? How does the url in the piwik configuration relate to this?

If the HTML file has the Piwik JS code in it, then Piwik will track it.