Anh Le

My Digital Marketing & CRM Journey

How to Set up Google Analytics & Google Tag Manager for your Website

One month ago, I created my second website with a purpose to share my digital marketing journey. However, recently, I’ve been really busy and haven’t had much time to set it up properly. So here you go – Setting up Google Analytics & Google Tag Manager the first thing everyone must do when launching a website!

I. Setting up Google Analytics

The first step you need to do is creating a Google Analytics Account, which can be done easily by clicking to this link and following the instruction.

Set up Google Analytics
Fill all required information
Set up Google Analytics
Your Google Analytics Account is created. Please note your Tracking ID for next steps

From this step, if your website is WordPress and you don’t want to touch code, you can just install Analytics Cat plugin to link the web with your Google Analytics account. The other way is following the Google instruction on the screen above to manually add the tracking code to your website. ( You can do this by going to Appearance → Editor, select the header.php file for your used theme and paste the Google Analytics Tracking Code right before the </head> tag in the Editor

It’s not complicated at all and I’m sure that you can just easily do it yourself or find tutorials on Google. However, if you want more advanced analytics, I suggest stopping when you get the tracking code. Instead of adding the Google Analytics tracking code directly to your website, I will be using the Tag Manager to do that. And why we need Google Tag Manager, I will share with you in another blog, however, you can start reading about it here.

II. Set up Google Tag Manager

At first, you can go to Google Tag Manager website and sign up. Note that you need use the same Google account you used with Google Analytics.

Link Google Tag Manager with WordPress
After you create an account, the setting code will auto pop-up

Same as the way I mentioned adding Google Analytics to your WordPress, Google Tag Manager is added in the same way. For this step, you also can use plugin but for me adding code is faster. Please go to Appearance → Editor, select the header.php file, copy the code from GTM and add them same position like the image below:

Link Google Tag Manager with WordPress
Hit the “Update File” to save change

Now, back to Google Tag Manager.

Set up Tag on GTM
This is the dashboard you will see after creating your account!

After successfully linking your GTM, you need to create a new Tag

Set up Tag on GTM

As you can see, after click “choose a tag type to begin with”, there are currently more than 20+ integration templates available. Just by looking at this, can you get an idea why we need a Tag Manager for? As you can see, it’s not only Google Analytics, with GTM (Google Tag Manager), I can also track how my social network like LinkedIn, Twitter perform or any other third parties with the custom code avaiable. It makes things more convienient for marketers as you have an analytic hub, which allows you collect more relevant to your campaign without touching code much.

But for now, we’re back to Google Analytics again. Choose the “Google Analytics Universal Analytics” option. Under Google Analytics Settings, choose New Variable. Add your Google Analytics ID that we already set up at the beginning of the blog and remember to name it.

Set up Tag on GTM
I named the variable as GA – Tracking ID

Hit “Save” and now we’re done. Both Google Analytics & GTM are ready to use for you!

***

Check out my article about “How to Win Digital Marketing Simulation Game” and I’d love to be connected on LinkedIn if you find my blog interest or have any comments!!

I hope you stay healthy & happy during Covid!

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*