jeffreytse / jekyll-theme-yat

🎨 Yet another theme for elegant writers with modern flat style and beautiful night/dark mode.
https://jeffreytse.github.io/jekyll-theme-yat
MIT License
978 stars 891 forks source link

How to activate google-analytics? #71

Open swaggypg opened 2 years ago

swaggypg commented 2 years ago

Hi! I have seen the google_analytics.html file in the _includes/extensions and there is some code about google_analytics in _config.yml too. But I don't really understand how to activate this function. Could you please tell me about it? Thank you very much! QQ截图20220104160717

jeffreytse commented 2 years ago

Hi @swaggypg

Recently I'm quite busy, and sorry for the late reply. Actually, you can refer to this line, it will check if your google_analytics property isn't null, then will include relevant code to the header.

Thanks and Regards