Hugo-coder: google analytics

Created on 7 Jul 2018  路  8Comments  路  Source: luizdepra/hugo-coder

Is it possible to add google analytics to this theme?

I apologize for the silly question, but I am also new to hugo itself. Thanks..

Most helpful comment

It's already supported, you only need to add the following to your config.toml outside of [params]:

googleAnalytics = "UA-xxxxxxxxx-1"

...

[params]
  ...

All 8 comments

Think I found the answer.. assuming it will work with this theme

https://gohugo.io/templates/internal/#configure-google-analytics

It's already supported, you only need to add the following to your config.toml outside of [params]:

googleAnalytics = "UA-xxxxxxxxx-1"

...

[params]
  ...

thanks @khos2ow

@khos2ow Do you know if this theme supports showing the git commit in the footer? I've seen it in/on other themes.

@dalenoe no it doesn't. But what is the use case of it?

I guess it would be useful for a open source, collaboration based website, which the content can be updated through individual PRs.

I personally haven't needed it. @luizdepra may be we can add this in v2 if time allows and other higher priority items were done?

@khos2ow, ok. We can add it.

@dalenoe, could you please create and feature request (issue) with some examples?

Sure thing. For the record, I can possibly contribute. I almost have it working on my personal site.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luizdepra picture luizdepra  路  7Comments

luizdepra picture luizdepra  路  6Comments

systemallica picture systemallica  路  7Comments

swarnalee picture swarnalee  路  4Comments

davhin picture davhin  路  5Comments