WordPress: How to setup Google Analytics

Google Analytics is a great tool for tracking all kinds of traffic across your site. You have two options for installing Google Analytics on WordPress…

NOTE: Do not do both steps from below! you should select your preferred option only.

We recommend using the excellent Google Analytics Dashboard plugin. This will automatically add the tracking code to all your pages/posts and also display your traffic stats in your WP dashboard. We actually use this plugin on all of our own websites and it works great.

2. Add the Tracking Code Manually

If you would prefer not to use a plugin, you can add your tracking by going to pipdig > Theme Hooks in your blog’s dashboard. You should copy the tracking code into the section.

Was this article helpful?

5 Comments

  1. Laci Stilwell

    I’ve been having issues with my Google Analytics since I uploaded my Pipdig theme a few weeks ago. I keep receiving an error message and that there isn’t any analytics to report.

    1. Phil (pipdig)

      Hi Laci, which method did you use to connect your site to Google Analytics?

      1. Laci Stilwell

        I used the google analytics plugin. I had it long before I switched over to my pipdig theme but ever since, I’ve had issues and it has 0 reports, etc. It says “Something went wrong, check Errors & Debug or authorize the plugin.” and I’ve tried both of those options and still nothing.

        1. Phil (pipdig)

          I’d recommend asking for help with the plugin at https://wordpress.org/support/plugin/google-analytics-dashboard-for-wp. I can confirm that the theme doesn’t interact with Google Analytics in any way, so the issue might be coming from another plugin or possibly a configuration issue somewhere. The other option would be to remove the plugin and add the tracking code manually via the second option above. If that also fails, this means the issue is not coming from the theme or plugin, so it will at least narrow down possible sources of the problem for you.

Leave a comment


The link to your website will be visible to support staff only. It will not be shown publicly.