How do I install Google Analytics on my website?

Member

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 aniyah.green , a year ago

@mike 

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

  1. Sign up for a Google Analytics account at https://analytics.google.com/.
  2. After signing up, you will be given a tracking code. This code will look something like this:
1
2
3
4
5
6
7
8
9
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-000000-01"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-000000-01');
</script>


  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.