How to add Google Analytics to the Website?

how to set up google analytics

Want to measure your Website’s Performance, then you are at right place!

“Google Analytics is a web analytics tool made by Google that helps you to track your web pages for a better understanding of your customers”.

Google Analytics is an absolutely free online tool made by Google. GA measures your Digital Marketing efforts by comparing them with different variables.

In real-time GA tells about your website visitors on particular pages. The best part about Digital Marketing is that it is highly measurable. With analytics, we can manage and measure the data easily.

If you have just made your website and haven’t configured Google Analytics yet, then I will tell you,  How to add google analytics to the Website.

How to put Google Analytics in WordPress site?

Add Google Analytics to WordPress plugin- MonsterInsights Plugin

  • Open your WordPress Dashboard-
  • After login to the WordPress Dashboard, go to plugins
  • Add a new plugin called Monsterinsights Plugin
  • After installing it, just activate the plugin
  • Welcome to Monsterinsights page will appear
  • Select 1 out of 3 categories that describe your business from a business website, Blog, E-commerce
  • Signup for Google Analytics with your Gmail account  and create a new analytics account
  • You will get an Analytics tracking ID along with a Google Analytics Code.
  • Now, click on Connect Monster Insights with the above analytics account
  • After giving permission it will automatically fetch the Analytics tracking ID
  • You will see an option, to connect Google Analytics to your website
  • Click on Complete connection, Congratulations you have installed Google Analytics to your WordPress site. Click on Save
  • Now visit your analytics section. Your website is now connected with Google Analytics.
  • How to Add Google Analytics to WordPress Without a Plugin?

You can also add Analytics code in the theme editor even without installing the plugin.

  •  Just log in to your website admin panel.
  •  Click on Appearance and then click on the editor option.
  • Create a Google Analytics account and after getting that analytic code.
  • Now copy the analytics code paste it below the footer section and above the body section and save it.
  • You will also find out the header.php file. Follow the above steps.
  • Now visit your website and Check analytics, it must be successfully configured.

But I would not recommend this step to you. In general, it’s not a good practice to modify the original theme files of your WordPress website theme because these changes will be lost after theme updates.

How to Add Google Analytics to an HTML Website?

  • Visit and signup with your Gmail ID
  • Create a new analytics account
  • Click on the website as a tracking option
  • Type an appropriate account name that represents your Google Analytics account
  • Enter your website name or URL
  • Select the Industry category and then select the time zone
  • After clicking on getting tracking ID button you will get the tracking script along with the tracking id, Now copy this analytics script
  • Login to the c-panel of your HTML website and click on the file manager
  • After clicking on the public_html folder
  • Now click on idex.html and then click on edit
  • Now copy and paste Google Analytics code above the closing head tag and next click on save changes.
  • Similarly, you can add it to all the pages of the website.
  • Now you have successfully configured Google Analytics code to your website.

Benefits of using Google Analytics tool:

  • It is a free analytical tool by Google.
  • It is easy to use and monitor the website.
  • GA gives insights into the full website.
  • You can get real-time analyses of a webpage.
  • From G-Analytics you can know about the demography of your website visitors i.e. their age, sex, location, etc.
  • GA gives insight into the top-performing content.
  • You can analyze and identify which Campaigns are performing well.
  • You will be able to identify which page is performing well and getting more impressions, clicks, and CTR.
  • G-Analytics gives full statistics on your website and tells you which social media channel is performing well.
  • GA tells which device visitors use to browse your site, (whether it is mobile, desktop, or tablet).
  • It provides details about the type of browser visitors use to browse your site, (whether it is Chrome, opera, safari, or UC browser).
  • Analytics helps in monitoring and optimizing your website SEO.
  • You can identify and learn about keyword insights of your website.
  • Set your goals and measure results.

add google analytics to website html

  • It helps you identify conversions on your website.
  • Analytics helps you compare which digital marketing channel is giving better results(SEO, SEM, SMO, SMM, Email marketing, Video marketing).
  • It helps you analyze your competitors and formulate your strategy accordingly.
  • G.A. shows you the time duration a visitor stays on a specific page.
  • With  GA you will know about the acquisition overview and behavioral flow on the site.
  • It tells you about, How well you retain users. (cohort analysis).
  • You can even use Google Analytics for multiple websites.
  • You can also learn the skills of optimizing your website. You just need to click on Discover options available in the bottom right corner of the analytics dashboard.
  • It helps you reduce the bounce rates. The bounce Rate is the Total number of one-page visits/the total number of entries to a website. The lower the bounce rate, the better the website.
  • It helps you in benchmarking. It is an analytical approach through which you can analyze the performance of different platforms.
  • It tells you about user flow to the web pages. Hence you can manage different stages in the digital Marketing Funnel(Awareness, Interest, Consideration, Intent Evaluation, Purchase)
  • Google Analytics helps you in collecting basic data from a website. This data will help you in setting up new strategies and goals for your website.


Now you can easily configure and install Google Analytics to your website. All the tools of Google are tremendous and give excellent results. This tool is free to integrate and use on the website. Google Analytics is a perfect tool for you if you understand how to use it properly. As discussed it will help you in monitoring, analyzing, optimizing, and increasing your conversion rates in Google Ads and in SEO. It gives results in the form of graphs. Google Analytics is the best free online tool available. It can even help you in monitoring your ROI. G-analytics is a backbone for measuring your digital marketing efforts. You have a competitive edge over your competitors if you use Google Analytics with your website. You just need to analyze the graphs and improve them for more impressions, clicks, and conversions. If you still have any queries then ask here.

1 comment

Leave a reply