anonymized ip

This commit is contained in:
wgroeneveld 2018-08-13 14:33:33 +02:00
parent a44c6c633e
commit a12c0e699a
5 changed files with 24 additions and 4 deletions

View File

@ -29,7 +29,7 @@ Take a look at my [<i class='fa fa-github'></i>&nbsp;Github account](https://git
#### Writing and philosophizing
* A [fountain pen addict](/post/fountain-pens-first-look/) and avid [<i class='fa fa-pencil'></i>&nbsp;journaler](/post/journaling-in-practice/)
* This website is the ideal base for writing down my thoughts about virtually anything, primarly intended to amuse myself and not others.
* This website[^1] is the ideal base for writing down my thoughts about virtually anything, primarly intended to amuse myself and not others.
#### Drawing
@ -48,3 +48,5 @@ These are the latest 12 books I've read:
</div>
<script src="https://www.goodreads.com/review/grid_widget/5451893.Wouter's%20bookshelf:%20read?cover_size=medium&hide_link=&hide_title=&num_books=12&order=d&shelf=read&sort=date_added&widget_id=1496758344" type="text/javascript" charset="utf-8"></script>
[^1]: This website uses an [anonymized IP](https://support.google.com/analytics/answer/2763052?hl=en) form of Google Analytics for the sole purpose of tracking website traffic.

View File

@ -32,7 +32,12 @@
<!-- discuss without disqus: twitter knopke -->
{{ if (not .Params.disableComments) }}
<h4 class="page-header"><i class="fa fa-comments-o"></i>&nbsp;Join the Discussion on
<h4 class="page-header"><i class="fa fa-comments-o"></i>&nbsp;
{{ if eq "essays" .Section }}
Discussieer mee op
{{ else }}
Join the Discussion on
{{ end }}
<a href="https://twitter.com/{{ .Site.Params.twitter }}">Twitter</a>!</h4>
{{ if .Site.DisqusShortname }}

View File

@ -0,0 +1,8 @@
<!-- hugo doesn't provide extra settings like anonymizeIp ... -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ .Site.GoogleAnalytics}}', 'auto');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>

View File

@ -92,4 +92,4 @@
}
</script>
{{ template "_internal/google_analytics_async.html" . }}
{{ partial "google_analytics_anonymous.html" . }}

View File

@ -15,7 +15,12 @@
<h4>{{ .Params.subtitle }}</h4>
<h5>
<span style="color: grey;">
<i class='fa fa-calendar'></i>&nbsp;{{ $.Scratch.Get "subtitle" }}
<span title="Created Date">
<i class='fa fa-calendar'></i>&nbsp;{{ $.Scratch.Get "subtitle" }}
</span>&nbsp;|&nbsp;
<span title="Last Modified Date">
<i class='fa fa-calendar-check-o'></i>&nbsp;{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</span>
</span>
</h5>
{{ end }}