Joe Mooring
a692278bc6
hugolib: Deprecate .Site.GoogleAnalytics
...
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Daniel Atwood
ba16a14c6e
Add support for Google Analytics v4
2021-03-03 13:30:06 +01:00
Bjørn Erik Pedersen
755d1ffe7a
tpl/tmplimpl: Add MIME type to embedded JS
...
So they get minified correctly.
See #5042
2018-08-06 23:11:53 +02:00
Anthony Fok
2b73e89d6d
tpl: Set permission of embedded templates to 0644
2018-07-09 12:57:08 -06:00
Bjørn Erik Pedersen
4ed1228d55
Fix GA anonymizeIp order
2018-05-25 16:05:45 +02:00
Bjørn Erik Pedersen
a51945ea4b
Add no-cookie variants of the Google Analytics templates
...
The current full set of options for GA is now:
```toml
[privacy]
[privacy.googleAnalytics]
disable = false
respectDoNotTrack = true
anonymizeIP = true
useSessionStorage = true
```
Fixes #4775
2018-05-25 15:56:10 +02:00
Bjørn Erik Pedersen
1f1d955b56
Add anonymizeIP to GA privacy config
...
See #4751
2018-05-25 10:53:39 +02:00
Bjørn Erik Pedersen
35ccf06dae
Fix some recently broken embedded templates
...
And add tests for them.
Fixes #4757
2018-05-23 10:03:11 +02:00
Bjørn Erik Pedersen
710142016b
Add RespectDoNotTrack to GDPR privacy policy for Google Analytics
...
See #4616
2018-05-21 13:16:43 +02:00
Bjørn Erik Pedersen
f45b522ebf
tpl/tplimpl: Adjust GA templates
...
See #4616
2018-05-21 10:21:36 +02:00
Bjørn Erik Pedersen
6789207347
tpl/tplimpl/embedded: Wrap the relevant templates with the privacy policy disable check
...
See #4616
2018-05-21 00:41:42 +02:00
Bjørn Erik Pedersen
34ad9a4f17
tpl/tplimpl: Extract internal templates
...
Having them in separate files should make maintainance easier.
When adding new or making changes to the templates:
```bash
mage generate
```
This will get the Go code in sync.
Fixes #4457
2018-05-04 23:12:10 +02:00