Can I install Analytics before deciding on a theme?

I haven’t decided what theme to have on my WordPress site yet.

But I do want Google Analytics on the site.

Before installing Google Analytics on the site, do I need to decide on the theme?

i.e. does the Google Analytics code go into a file that is specific to the theme, or that changes with a changed theme?

Thanks

3 Answers
3

If you add tracking code to a theme file you will need to do this on every theme change.

It is considered good practice to use plugin for this, like Google Analytics for WordPress. It will use common hooks (that every theme worth using has) to insert code and that way you don’t need to think about that when changing.

Leave a Comment