Hack: Adding Google Analytics Without Editing the Header File

What is the right way to add Google Analytics code? I’ve done it in the past by simply placing the code in the header.php file of my theme. This makes a lot of sense, especially if you have created your own theme or so extensively edited an existing one that you aren’t use a child theme at all, just your own version of the theme.

Continue reading “Hack: Adding Google Analytics Without Editing the Header File”