Commit Graph
4 Commits
Author SHA1 Message Date
George Cushen 1f6beec9f7 fix: GA outbound link tracking
Fixes external links opening both in current tab and new tab when `google_analytics` enabled.

Fix #1511
2020-01-26 16:38:01 +00:00
George Cushen 24bfa6fa4d feat: recognize env via -e argument in addition to HUGO_ENV
Also, see https://github.com/gohugoio/hugo/issues/6456#issuecomment-546524056
2019-10-30 13:20:25 +00:00
George Cushen b028457922 fix: gtag.js config 2019-09-28 18:20:03 +01:00
George Cushen f0ad140f07 feat: add support for Google Tag Manager + refactor GA to use gtag.js
GT (gtag.js) and GTM are the modern Google analytics solutions.

New `[marketing]` config section added to `params.toml`.

GT will fall back to site.GoogleAnalytics if the new `[marketing]` param
for GT/GA isn't specified, so currently no breaking changes.

May deprecate site.GoogleAnalytics in future.

Close #1349
2019-09-24 14:00:23 +01:00