Complete Guide to Using Thesis 2 for WordPress. Click Here.

≡ Menu

Step 17: Add Google Analytics to Thesis 2 WordPress Theme

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).

Thesis 2 Tracking Scripts

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?

Thesis 2 Tracking Scripts Entry

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”.

Thesis 2 HTML Head Menu Option

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.

Thesis 2 HTML Head Editor

When you see the little gear icon light up, click it.

Thesis 2 HTML Head Scripts Box

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.

Thesis 2 HTML Head Scripts Entry

Don’t forget to click “Save HTML Head”.

Thesis 2 Save HTML Head Button

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.

About the author: I’m a techie, a gadget geek, a former programmer, and all-around technology nut. Currently I’m a business analyst for a technology company. I love what technology can do for us. I love smartphones and apps for everything. Building sites with Thesis 2.0 and WordPress help me to reconnect with the feeling of building something tangible.

I’m on: Google+ and Twitter

{ 14 comments… add one }
  • Jim Hunter August 15, 2013, 10:44 AM

    Thanks so much for doing this. It has been invaluable.
    I think the process has changed slightly since you did this. Putting the UA and script has been split and can’t be put in as one process.
    I put the UA code (no javascript script yet) in Site>Google Analytics and clicked Save.
    I left Site>Tracking Scripts alone. No javascript there. See next point for why not.
    Then I went to Site>HTML Head, clicked the gear, dropped the javascript in and saved the javascript and then saved the HTML Head (this was because I know that GA goes in the Head section of the page.)
    Correct as far as you know?

  • Doug Macklem August 15, 2013, 8:06 PM

    Yes, Thesis 2.1 upgrade change some of these menus. I’m still deciding if I want to go back and put in the hours to update my steps. It took a lot of work to get here. I am running Thesis 2.1 now and my Google Analytics script is in Thesis => Site => HTML Head => Head Scripts. This is where my code is now. I don’t recall putting it there so I assume the 2.1 upgrade did this.

  • Gal Tesler January 19, 2014, 5:45 AM

    Hi Doug,

    Many thanks for explaining this process!

    Had I not stumbled upon your post, I would’ve just put the tracking code and overlook the head script, so thanks for that!

    Can you briefly explain what is the purpose of the head script in the context of Google Analytics?



  • Doug Macklem January 19, 2014, 8:38 AM


    I simply followed Google’s instructions. I don’t know the answer to your question. However, I did find this: From what I can tell, the way they load their script won’t affect the loading performance of your website if you are using the asynchronous script.

  • akash February 15, 2014, 10:54 PM

    great info, need to update based on 2.1 version

  • Doug Macklem February 22, 2014, 8:09 AM

    I just don’t have time these days to make updates. I did this site as a “fun” project when I was building a site for my wife.

  • Kerry Gaynor May 30, 2014, 11:41 PM

    Awesome post and it helped me out so much. Thanks Doug! I love Thesis and your instructions made my life a lot easier 🙂

  • Don Donadio July 22, 2014, 12:09 PM

    These tutorials are what I’ve been needing since I purchased Thesis2 over a year ago. Bravo; they are totally awesome, clear, easy to use and so very helpful.

  • Doug Macklem July 22, 2014, 10:16 PM


  • Klaus Sube February 3, 2015, 5:58 AM

    Hello Doug,
    i am a newbie to Thesis and Wordpress, but there ist a site (Wordpress with Thesis 2) where i have to add a Google Analytics code. I understood your perfect description and it would be easy for me to follow.
    My problem: There is already added a Google Analytics ID.
    Would it be possible to add a second ID to the site? How can i do so?
    I would be very happy gettin a solution …

  • Dan February 10, 2015, 4:07 PM

    Hey Doug do you know by chance how to add a conversion tracking code to a specific page in Thesis 2.1.9? I’m lost 🙁

  • Doug Macklem February 24, 2015, 5:50 PM

    I do not know the answer to this. I would assume that only one ID can be added to a site. Again, I don’t really know the answer to this.

  • Doug Macklem February 24, 2015, 5:50 PM

    I have not tried this before so I can’t help you. It is something I would like to know in the future so I’ll have to look into this.

  • Olu June 12, 2015, 7:44 PM

    So grateful to you that this is helpful. Thanks and God bless you.

Leave a Comment