Install Google Analytics On Your Hashnode Blog

I am a developer from Bangladesh.
Search for a command to run...

I am a developer from Bangladesh.
Great Article! Thanks for sharing. I've bookmarked it which I am going to definitely follow. Just want to know about the dimension of your cover picture for this post which you have designed through Canva.
K M H Mubin Thanks :)
this is still useful. Thanks for sharing.
K M H Mubin It seems not to work anymore.
nice article !
how do we add new analytics ? They are G-XXXX instead of UA-XXXXX
As far as I know, You cannot add the way UA-XXXX added. But you can add G-XXXX manually in the meta tags.
K M H Mubin but it is a JavaScript snippet. How would you do so in meta tags ?
Maxi Contieri Hey, thanks for asking. I talked with the Hashnode Support Team; they said currently, new G-XXXX tags are not supported.

Let's try to solve it in a new way.
The answers to the query are here,
fig: selecting integration tab
fig: adding JS snippets in meta tags section
I hope it will be work just like other JS snippets worked. I never use the new Google Analytics G-XXXX code. It might be a gamble. If it works, please let me know. I will add to my post for new members.
Thank you.
Maxi Contieri does it work even now ? I tried adding the Google Tag Manager snippet, but don't see data in Google Analytics.
K M H Mubin This doesn't seem to work for me but the UA-XXX one works.
Welcome to the series! We're glad to have you with us on this journey through the realm of Hashnode. Since we'll start from scratch, there's no need to worry if you have no website.
The utility SEO tool provides you with a thorough analysis of the people who visit your site daily. For example, How much web traffic you're getting, what pages do people search when they open your site, what makes your site successful, or vice versa...
Rock Paper Scissors is a test of destiny to settle on all manner of topics. If it's washing dishes or ordering pizza. Rock Paper Scissors is also used as a form of an equal choice between two individuals. It's still the most rewarding toy to win a ga...

The blog has become the mainstream source to share information in modern times. You have the freedom of choice to share any information with your blog. More than 570 million blogs are on the internet, and 7 million blog posts are published every day....

Python is one of the languages that is witnessing incredible growth and popularity year by year. In 2017, Stack overflow calculated that python would beat all other programming languages by 2020 as it has become the fastest-growing programming langua...

GitHub Profile READMEs are essentially a snapshot of who you are. From creative profiles to interactive games, you can pretty much represent yourself.

With the blessing of the Internet, people can learn anything anytime, anywhere without any hassle. Programming Language is one of the examples. Nowadays, not only students but also general people learn programming language as hobbies or to make a car...

Mubin's Odyssey
14 posts
Aspiring Full Stack Developer | UI Designer | Technical Writer | Connect me on other social media kmhmubin
Do you have a blog or a static website? If the answer is yes, whether they are for personal or business use, you need Google Analytics. In this article, we're going to look at Google Analytics from the absolute beginner's perspective. Why you need it, how to get it, and how to install it on your website.
Google Analytics is a free web analytics tool offered by Google to help you analyze your website traffic.
Google Analytics allows you to track and understand your customer’s behavior, user experience, online content, device functionality, and more. Google Analytics allows you the information needed to help you shape your business's success strategy, discovering things you probably never knew about visitors to your site. That's why over 50 million websites around the world use Google Analytics.
If you have a website, you should be using Google Analytics. There are no exceptions here – it’s a useful and important tool for every website owner.
Here are just a few of the many questions about your website that you can answer using Google Analytics.
There are many additional questions that Google Analytics can answer, but those are the most important for any website owners.
Google Analytics puts several lines of tracking code into the code of your website. The code records your users' various activities when they visit your website, along with the attributes of those users. Then it sends all the information on the Google Analytics server once the user exits your website.
Google Analytics collected data from your website in multiple ways, mainly by four levels:
User Level: related actions by each user
Session Level: each visit
Pageview Level: each page visit
Event Level: button clicks, video views, subscription, etc
At first, you need a Google account for other services like Gmail, Google Drive, etc. If you don't have one, then you will need to create a new one.
⛔Don't let anyone like your web designer, web developer, web host, or SEO person create your website's Google Analytics account under their own Google account so that they can "manage" it for you. If you do, they part ways, they will take your Google Analytics data with them, and you will have to start all over.
Once you have a google account, you can go to Google Analytics and click the Sign into Google Analytics button. You will be greeted with the Google Analytics home page.

Fig: Homepage of Google Analytics
After you click the Sign-Up button, you will fill out information for your website. We're going to assume you have one website and only need one view.
In the account setup section, you will find an option to give your account name. You can give your website name.

Fig: Add account name
Beneath this, you will have the option to configure where your Google Analytics data can be shared.
Here you need to add a property name. The property represents a business's data. In the reporting section, select your time zone and currency based on the country.

Fig: Add property details
Below, you can find an option named "Show advance options" and pressed it.

Fig: Create a universal analytics property
It will give a new option to create a universal analytics property. Here, you need to add your website URL and select the second option named "Create a Universal Analytics property only." This option will give you only Universal Analytic ID's.
In this section, you need to tell select the industry category for your website. For example, if your website shares information about jobs or education, select Jobs & Education. Tell me about your business size and what kind of information you are seeking.

Fig: Add Business Information
After adding all the information the hit the create button, and it will pop-up the term and agreement page, select term and condition based on your country, and hit the next button.

Fig: Term and condition option
You are almost done with creating Google Analytics Account. After creating an account, it will redirect you to the Tracking Code page. If it doesn't redirect automatically, click the left setting button and then select the Tracking Info option. Here you will find your Google Analytics Tracking ID.
🚫 Never share your tracking ID with anyone.

Fig: Copy Tracking ID
Your universal tracking ID starts with UA. Here is an example Tracking ID.
Tracking ID:
UA-54546992-1
Copy Your tracking ID and Go to your Blog website.
Once you are finished, you need to install it on every page of your website. Here, go to your hashnode blog, then select the Dashboard. On the dashboard, you will see an option name INTEGRATION; select this option. You will find a page like this below.

Fig: Adding Google Analytics Tracking ID
You will see a dedicated option to enter your tracking ID. Simple paste your tracking ID and save the change. It will automatically add this tracking ID to all webpages. Also, it will start tracking your information.
If you face any problem or want to ask questions or suggestions, you can join the Hashnode Exclusive Discord server and chat with them.
🚩👉 If it was useful to you, please Like/Share to reach others as well. Please hit the Subscribe button at the top of the page to get an email notification on my latest posts.
I talk about web development and UI design on Twitter @kmhmubin, come to talk with me there!
The cover image is an improvisation on top of the work from Canva.