Where is the Google Analytics code?

Google has a freemium platform to perform the task of data collection and analysis. However, many get stuck when it comes to integrating this platform with WordPress. In this post, I'm going to answer a very common question among beginner bloggers: Where is the Google Analytics code?

Stay until the end, I have something very useful to tell you…


An interesting fact: a freemium tool is a free resource, with paid features. That is, freemium = free, but premium.

Does Google Analytics require code? Why is this code necessary?

The answer is a resounding yes. Google Analytics does require Analytics tracking code or ID, or the full Javascript tracking code snippet, to complete the setup.

This Analytics tracking code or ID is necessary because through it is that Google connects your website with its analytics platform. Remember that Analytics is a platform that collects data from a specific website.

And for it to do this task with yours, you have to tell it which domain it should collect the data from and give it guarantees that that website is your property, and not a third party.

There are several ways to embed that code on your website. The old way is to insert it manually, with the current form Google does it for you.

So not only will I answer your question "where is the Google Analytics code", I will also answer the two ways to connect your website with this valuable tool.

How do I get my Google Analytics code?

Getting the Analytics tracking code or ID is very easy. Just follow the following four steps:

  1. Sign in to your Google Analytics account. If you have not yet created one, enter this link to do your homework.
  2. Click "administrator" or "manage". Can't find it? Look to your left, at the end. I highlighted it with the color red, in the following image:
Where is the Google Analytics code?
  1. Then click on "tracking information". Yes, I know there are many options. Go to the middle column and click on the fourth option, from top to bottom. Guide yourself by the image:
Where is the Google Analytics code? Click tracking information.
  1. Now click on "tracking code". This is precisely the first option of the "tracking information" drop-down menu. In the image, hide some of the code on purpose, for security.
  1. Copy the code to the WordPress <HEAD> tag. Ready! You've connected your website! Now you just have to wait 48 hours to get the key metrics that will help you get the most out of your project.

If you completed these five steps, you've just gotten the answer to your original question: where is the Google Analytics code?

Where is the Google Analytics code? Here's your code.

One minute… I'm not done yet

If you've come this far, I not only answered your question about where the Google Analytics code is, but I also told you how to get it. But wait a minute. Don't go away yet! We're not done yet!

There is an old saying that goes: "what is promised is debt".

You remember when I told you, at the beginning of this article, that I have something very useful to tell you. Well, in the next section, I'll tell you how to connect your website with Google Analytics by skipping all the previous process.

Be careful: the following lines are very useful for people who do not know ANYTHING about programming.

Are you ready!

Recommended Reading: Yoast SEO Tutorial: How to Optimize My Articles for SEO.

How to connect my website with Google Analytics without knowing programming?

Of all the steps I explained above, the most difficult is step number 5. I admit it. Let's see, most people who start a blog to live off it don't know anything about programming.

How are you going to paste the code into the <HEAD> wordpress tag, if you don't even know what that is?

Whaaaaaaaat? What do you eat that with? But don't worry, it's not that I'm making fun of you. You are my reader, I would never do such a thing.

If it comforts you, at first I pass the same.

Well, back to the mess. Thank God, everything in life has a solution. So if you're wondering "how to connect my website with Google Analytics without knowing anything about programming", read on to unblock your answer.

In the WordPress store there are several plugins to do this, but we will select the easiest, most intuitive and effective option. This is the same Alphabet plugin: Site Kit by Google. To connect your website with Google Analytics do the following:

  1. Install the Site Kit by Google plugin from WordPress. I am already writing an article on the subject.
  2. Enter your Google Account email and choose which services you want to connect. Among them, choose Google Analytics.

Ready! It was as easy as opening the lid of a soda!

I know you entered this article to get your answer to "where is the Google Analytics code", but as you can see you do not have to enter any code.

Requirements to install Site kit by Google

Google informs that in order for the Site Kit plugin to be installed correctly, your PC must meet the following requirements:

  • WordPress version 4.7+
  • PHP version 5.6+
  • Modern browser: Internet Explorer is not supported
  • It is publicly accessible: it is not in maintenance mode or "coming soon", accessible only through a password or otherwise locked.
  • It's a production environment, not a test environment.
  • The REST API is available: The site kit must be able to communicate via the REST API with Google services. To make sure the REST API is available for your site, go to > Health Tools .

If you have come this far, you already know where the Google Analytics code is, how to insert it into your website, how to connect your website without knowing anything about programming and the requirements that Mr. Google demands to install the Site Kit plugin.

If you have any doubts, you can express them in the comments. I will try to answer you as soon as possible.

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *