Anywhere you wish the script to track your visitors. I personally suggest you put it in the menu file for example so that it is loaded with each your page.
Just a note: its not neccessary to create separate threads for everything, just keep posting in the one where you already asked for help with your web, it makes things a bit more tidy