[root@rhce-ryanrudolf]# rm -rf / 2> /dev/null

things I break/fix for fun and learning

Nov 30, 2017 - 1 minute read - Comments

Google Analytics

This site now utilizes Google Analytics! I had tried many steps on how to make it work, manually editing pages to insert the code etc etc. But in the end, this is the most easiest and efficient way to integrate Google Analytics on a site generated by Hugo.

Edit config.toml file -

vi config.toml

Add this line if it does not exist yet, replace UA string with your Google Analytics string -

googleAnalytics = "UA-xxxxxxxxx-x"

And that’s it! You can get a free Google Analytics account from Google.

Screenshots below -





Like this page? Share it!

Directory Listing Android Apps For Accessing My Homeserver

comments powered by Disqus