The Easiest way to add Google Analytics to WordPress

Table of Contents

First thing first, why do you need Google Analytics and what’s the use?

Google Analytics allows you to track and understand your customer’s behavior, what they’re looking for, and whether your business is addressing their needs. It allows you to use its technology to dissect and study your online business so you can cater well to your customers. Also, it lets you monitor the performance of your website for various goals and events.

How to Install Google Analytics with Google Tag Manager (Step by Step)

Step 1: Visit and click on the “Start for free” button

Step 2: Use your Gmail account to create a Google Tag Manager Account.

Step 3: Click on “Create Account:

Step 4: Fill the required information. Make sure to add something relevant in order to be able to remember what the Account is about (When you end up with lots of accounts)

Step 5: Accept the Terms of Service Agreement

Step 6: Save these 2 codes into a notepad file

Step 7: Login into your Website’s WordPress Backend and go to the plugin section to add a new plugin:

Step 8: Install “Insert Headers and Footers” plugin.

Step 9: Once the plugin is activated, click on it. You can find it under the “Settings” tab.

Step 10: Copy the saved codes into the relevant fields.

Step 11: Click Save

Step 12: Congratulations! The hardest part is now completed! Now let’s move on on creating a Google Analytics account and linking it with Google Tag Manager. Visit and click “Start for free”. Keep in mind that this is different that Google Tag Manager and although that both websites look the same, you should proceed with this one as well.

Step 13: Login using your Gmail account. Preferable, you should use the one that you used to signup with Google Tag Manager.

Step 14: Click on the “Set up for free” button

Step 15: Fill the relevant details. Use an account name that is Specific to your client. Or your website. An account can host up to 50 properties, therefore, you should choose something generic enough.

Step 16: Accept everything from Google Analytics Terms of Service Agreement popup

Step 17: Copy the Tracking ID

Step 18: Visit Google Tag Manager again and click “New Tag”

Step 19: Name the tag as “Google Analytics Tracking” and click on the “Tag Configuration” box

Step 20: Click on Google Analytics: Universal Analytics

Step 21: Add a new Google Analytics Variable

Step 22: Paste the tracking ID that you previously copied from Google Analytics into the Tracking ID field and click “Save”

Step 23: Rename it as “GA tracking ID”

Step 24: Now you should have already been redirected on the Tag Configuration screen. Click on the triggering box.

Step 25: Choose “All Pages”

Step 26: Click to save the configured tag

Step 27: And finally click on the “Submit” to push the changes on your website

If everything was done correctly, you should be able to start seeing traffic on your website! Congratulations! You did it! Now, you should start thinking on what events and goals you should be tracking in order to monitor your performance!

More To Explore


Launch a Profitable Web Design Agency