I am totally blanking here. Where do I put the universal Google Analytics code? Is there a special field somewhere in the theme settings? Something else? I seem to remember such fields in other themes I’ve used, but again, I’m drawing a blank.
Perhaps I need to use a plugin like Google Analytics Dashboard for WP or one of the other ones that come up when I search for Google Analytics in the WP plugin directory? Just wanted to make sure I wasn’t missing something in the BB settings.
Hi Daniel,
In Appearance >> Customizer
you will see a Code section
Paste your code into the Javascript section and click the save button
(Note: It does not look very pretty in the form, and wraps around and looks ugly, but as long as you have pasted it from a plain text origin (ie not word), it should be fine)
HTH, Dave
First, thanks for responding to Daniel’s question. I was looking for this information and your response was exactly what I needed.
Quick question (if you have time)…
I’ve inserted the Google Analytics javascript code as you advised. I’ve confirmed that the code is now on every blog post and nearly every page on my site. For some reason, however, there are two pages (not posts) that lack the code.
Do you know how I can insert the JS code into those two pages? Is there a way to do so individually - i.e. add the code on the page level rather than site level?
Thanks for your reply. I just checked the two pages in question and the JS code is now there. I know that makes me sound like a knucklehead, but I checked it several times.
I may have been looking at a cached version of source code.
In any case, everything looks great. Sorry for the false alarm and thanks again for offering assistance. I appreciate it.
You can actually remove the <script> tags as those are automatically added when you place a code inside the JS Code section. Try that and see if it works!