How can I add Google Analytics tracking to my site?

We recommend using a plugin to manage your Google Analytics or tracking data. Having a tracking script input as part of a theme option isn’t the best idea because if you decide to change the theme in the future, you’ll lose your tracking script entirely and have to complete that process all over again. 

The best route is to use one of the many tracking plugins from the WordPress Plugin Directory. Here’s just a few that we recommend:

Google Analytics

Jetpack Site Stats

Powered by BetterDocs