There are a lot of JQuery plugins that will allow you to add the Google Analytics code you wish to use to a website. However, it’s important to note that some plugins will have issues doing things like making you aware of Google Analytics tracking the same website in more than one place. You should always use Google Analytics in the website that you want to track.
One of those plugins is called js-static-function. This plugin allows you to have a Google Analytics code stored in your website, but it also allows you to have the tracking code for Google Analytics working in your website. The plugin will do this by integrating with Google Analytics.
That is a nice feature. I have a number of clients that use this plugin to help them track their website in a number of places. We have a client at a company that uses this plugin to help them track their website in their Google Analytics account. It’s really neat.