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?


  1. Jessica

    What is the code to paste please? I cannot copy it

    1. Phil (pipdig)

      Hi Jessica, you would need to log in to Google Analytics to retrieve the tracking code which is specific to your site. I’d recommend using the plugin listed above so that you don’t need to do that.

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