How to Add Google Analytics to WordPress Site or Blog

 

In this article, We tell you about How to Add Google Analytics to WordPress Site or Blog. First, we tell you about What is Google Analytics?

 

What is Google Analytics?

Google Analytics is a free web analytics tool that shows the statistics of a website and provides the analytical tools for Search Engine Optimization. This service is started by Google in 2005 and it is associated with Google Gmail Account.

Google Analytics gives all the measurement of traffic and tells the user that where the traffic comes from. This tool is used for marketing purpose also. It shows the traffic, real-time user, Social traffic medium or source.

 

How to Add Google Analytics to WordPress Site or Blog

 

How to Add Google Analytics Code to WordPress Site or Blog 2 - How to Add Google Analytics to WordPress Site or Blog
How to Add Google Analytics to WordPress Site or Blog

 

Step 1:  Sign in a Gmail Account. Sign up for Google Analytics Account. 

Step 2:  Go to analytics.google.com. Sign up for Analytics. 

Step 3:  Analytics will ask you the website name, category, and the website URL. Write your website name, category and the website URL with HTTP or HTTPS. Select your reporting time zone according to your country. After this, Click Get Tracking Id.

 

FireShot Capture 096 Analytics  https   analytics.google.com analy - How to Add Google Analytics to WordPress Site or Blog

 

Step 4: When will you complete this process then it will give you the tracking code. So copy this tracking code and paste in the head section or in the body section of your website.

Step 5: Your tracking code is like this.

 

<!– Global site tag (gtag.js) – Google Analytics –>

<script async src=

“https://www.googletagmanager.com/

gtag/js?id=UA-54516992-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());

gtag(‘config’, ‘UA-54516992-1’);
</script>

 

You can also get the code here if you want to find the tracking code. 

a. Go to Admin Section and Click User Management System.

b. You will see Property Settings and click this. After Clicking You will find Tracking Info

c. Click Tracking Info and You will Find Tracking Code.

d. Click Tracking Code and you will find the code in the script tag form. 

e. Copy this script code. After copy the code, do the process which is mentioned below.

 

Step 6: How to paste the code into WordPress. Go to Appearance. Click Editor.

Step 7: Go to header.php file.

Step 8: Paste this code before </head> and Save the header.php file.

Step 9: Otherwise paste this code before </body> in footer.php file.  

Step 10: After this, your Analytics code is saved and It shows that how many visitors are on your website. 

 

So by this, you have known about How to Add Google Analytics to WordPress Without a Plugin.

If you have not the coding knowledge or do not want to paste the code then you can use plugins like Google Analytics, Monster Insights, WP Statistics etc. Use these plugins these are the best plugins.

 

Conclusion:

So by this post, you have known about How to Add Google Analytics to WordPress Site or Blog. So use this and know all the data about your websites.

 

Over to You:

Share this article with others and they will know about add the analytics code to their website. If you have liked this information like our Facebook Page.

 

Useful Article:

How to Add Your WordPress Site to Google Webmaster Tools

 

[100 % Off Udemy Coupon] Facebook Marketing: 1000% More Engagement & Boost Sales

 

 

SHARE THIS ARTICLE
  • 2
    Shares
  • 2
    Shares
14 Comments

Add a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.