No you do not need to put the GA code in all the page . Just select some pages which you you want to track , then put the code in the end of the html code .........GA code.....</html>
It depends how you want to track your page ,if you want to track more pages than install the GA code in all place .
There's actually instructions though. But there's a lot of way to place the code. I use some funnel ways to do it.
If you want to track your whole website through GA ( Google Analytics ). There is no need to paste your GA code in your each page just create a script in your home page and paste your code in that script and after that close script, head and body then you can track your website whole inner pages through GA. If any difficulty then ask Your developers.
i m damn sure that you can put analytics code anywhere in index page and their is no need to add it in all page for both sites dynamic or static..... so be frank for add it anywhere in home page...