How do I install Google Analytics on my website?


by mike , in category: SEO Tools , a year ago

How do I install Google Analytics on my website?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

2 answers

by priscilla.langworth , a year ago

@mike 1. Create a Google Analytics account.

  1. Retrieve the Tracking ID for your website.
  2. Place the tracking code on each page of the website. This can be done easily by adding the tracking code to the header of each page.
  3. Check the code installation. You can do this by using Google Tag assistant or any other verification tool.
  4. Start tracking your website metrics. You can then access all the metrics from the Google Analytics dashboard.
by , a year ago


To install Google Analytics on your website, you will need to follow these steps:

  1. Sign up for a Google Analytics account at
  2. After signing up, you will be given a tracking code. This code will look something like this:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-000000-01');

  1. Copy this code and paste it into the header of every page you want to track. If your site uses a template, you may be able to add the code to a single file that is included on every page.
  2. Save the changes to your website and publish it.
  3. It can take up to 24 hours for data to appear in your Google Analytics account.

Note: If you are using a content management system (CMS) like WordPress, you may be able to install a plugin that will allow you to add the tracking code without having to manually edit the code of your site. There are also options for adding Google Analytics to your site using Google Tag Manager.