Analytics Plugin not working on certain templates

Do I have to add a line of code to the templates to get analytics to work? I've got a few custom templates and I just realized that analytics is not installed on those, but it is working on others.