Only in the index?!

I want to ask about the tracking code? do i have to insert it in the index (or default) files ONLY? or I must insert in every file in my project?

In every page you wish to track with Piwik (or in a “footer” file included on all your pages)