Piwik Code distribution by .htaccess?

Hi,

I have one Domain that contains many different subdirs and almostn handmade html or static html from generators like jAlbum.
So it is totally impossible to insert the code (efficiently) by hand into the htmls and there is no central index.html that could carry it.

This makes me want to know if there is a way to put a .htaccess into the root dir of the domainspace that injects the piwik tracking code to every called html?

Thanks, Mapan