In the last step we established a Google Analytics account, and got our tracking ID and script code. Now we’ll plug these values into the Thesis 2.o WordPress Theme. Thesis has made this very easy in the Thesis 2.0 upgrade. If you didn’t copy the tracking ID and tracking code as highlighted in the last step, then sign into your Google Analytics account, click on “Admin”, then click the “Tracking Info” link, and you’ll be returned to the same place we ended up in Step 16. Now, sign into your WordPress Dashboard and click “Thesis” in the left sidebar.
At the top of the page is the Thesis navigation bar. From here, click on “Site” then “Tracking Scripts” (see image below).
You are now presented with two entry boxes. Enter your Google Analytics Tracking ID into the box provided. We’ll leave the “Other Tracking Scripts” box empty for now. Be sure to click “Save Tracking Scripts” when you’re done. See how easy the Thesis Theme made entering Google Analytics tracking ID?
We’re half way there. Next we need to do something with the tracking code you copied from Google Analytics. Continuing on, click on “Site” then “HTML Head”.
You’ll be presented with a bunch of black boxes that allow you to different things with your HTML Head tags. If you don’t know what this means, don’t worry. Move your mouse over “Head Scripts” as highlighted below.
When you see the little gear icon light up, click it.
You will then see a text area labeled “Scripts”. Paste your Google Analytics tracking code in this box then click the “X” in the top right corner of the box.
Don’t forget to click “Save HTML Head”.
That’s all there is to it. You have now added Google Analytics tracking to the Thesis 2.0 WordPress Theme. In a few more posts we’ll revisit Google Analytics to see how to analyze who is visiting your website.