WordPress: How to setup Google Analytics

Google Analytics is a great tool for tracking all kinds of traffic on your site. During the setup of Google Analytics, they will provide you with a tracking code to add to all your posts and pages. Instead of placing the code everywhere manually, you just need to copy and paste it once using the pipdig > Theme Hooks page in your WordPress dashboard. You should copy and paste the tracking code into the first box on the page like this:

If you are not sure where to get the Google Analytics tracking code, please see this guide.

After adding the tracking code, you can now view any traffic stats by going to https://www.google.com/analytics/web. Please note that it will take several days before the stats are shown. Only dates after installing will show traffic, rather than historic dates from before installing.

Was this article helpful?