Google Analytics Installation

Hello,i have created an account on google analytics and i do have the code with me too. Can someone guide me how do i do the next thing? I’m confused!

what should be the file name of the code? before uploading ? like code.html or something else?

Just implement it on your index.html or any page you want to track visitors.

should i create new index.html or or paste it in the existing one? because the index file which i have uploaded is the code of the javascript which doesnt have any

Put it in your website files, the pages your visitors will browse, homepage, about us, guestbook etc.