How To Integrate Google Analytics With Hashnode

How To Integrate Google Analytics With Hashnode

ยท

2 min read

Yes, yes, yes !!! I can sense the excitement ๐Ÿ• You have decided to start your career as a blogger and have opened up your domain on the best blogging platform out there (sigh ! hashnode, of course). Now, you want to track all the excitement that people have for your work. How do you do that ? You track traffic. And how do you track traffic ? You use Google Analytics. Why ? Coz, it's freeeeeeeeeee !!! Well unless your blog starts to generate huge amounts of traffic, in which case you might have to pay up a little bit (don't stress, a healthy investment, all things considered).

Coming back to the question at hand ? Where do you start ? Well you start off by creating an account in analytics.

image.png

Once you have registered yourself, click on "Start measuring". In the next page, provide your account name. This is basically the name of your channel or blog id.

image.png

Click on Next and in the next page, provide the property name. This would again be somewhat similar to your blog id. For example, "blog1.hashnode.dev".

image.png

In the same page, next click on "Show advanced options" and enable the toggle button beside "Create a Universal Analytics property". Once enabled, provide the complete URL of the blog that you are trying to monitor and leave the rest of the settings as it is and click on Next.

image.png

In the next page, provide the details about the domain of your blog, the size of customers that you expect initially and the metrics that you want to track. Click on Create. And you are all set !!!

image.png

One last thing remains though. Go to settings. From the property tab, select the property which has "UA" in it. Then click on "Tracking Info" And select "Tracking Code". Copy the "Tracking ID".

image.png

Next head over to hashnode and click on your profile. Select "Blog Dashboard".

image.png

In the blogs dashboard page, select "Integrations".

image.png

In the Integrations page, paste the "Tracking ID" copied from the analytics page.

image.png

And that's it. You are all set to head over to the home page of your analytics account to track all the metrics that you want :)

image.png

Happy Learning :)

Did you find this article valuable?

Support ABHIRUP DAS by becoming a sponsor. Any amount is appreciated!

ย