Removed google analytics, tweaked styles
This commit is contained in:
parent 6a833ad4e4
commit f824f997d0
4 changed files with 10 additions and 32 deletions
| @ -28,4 +28,3 @@ enableGitInfo=true | |||
| ||||
[params] | ||||
blogCover = "/images/cover.jpg" | ||||
googleAnalyticsUserID = "UA-61486258-4" | ||||
| |
| @ -21,7 +21,10 @@ | |||
</div> | ||||
</div> | ||||
<p class="text-small"> | ||||
This website uses Google Analytics for reporting on site metrics and Algolia for providing better search. Third party cookies are not used and IP addresses Google Analytics receives are anonymized to protect your Privacy. | ||||
This website uses a self-hosted instance of <a href="https://plausible.io/" target="_blank" rel="noreferrer">Plausible</a> for analytics. | ||||
Our site stats can <a href="https://analytics.bookstackapp.com/bookstackapp.com" target="_blank" rel="noreferrer">be viewed here</a>. | ||||
<br> | ||||
We also use <a href="https://docsearch.algolia.com/" target="_blank" rel="noreferrer">Algolia</a> for providing better search. | ||||
</p> | ||||
</div> | ||||
</footer> | ||||
| |
| @ -69,35 +69,6 @@ | |||
| ||||
<link rel="canonical" href="{{ .Permalink }}" /> | ||||
| ||||
{{with .Site.Params.googleAnalyticsUserID }} | ||||
<script> | ||||
| ||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | ||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | ||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); | ||||
| ||||
var GA_LOCAL_STORAGE_KEY = 'ga:clientId'; | ||||
| ||||
if (window.localStorage) { | ||||
ga('create', '{{.}}', { | ||||
'storage': 'none', | ||||
'clientId': localStorage.getItem(GA_LOCAL_STORAGE_KEY) | ||||
}); | ||||
ga(function (tracker) { | ||||
localStorage.setItem(GA_LOCAL_STORAGE_KEY, tracker.get('clientId')); | ||||
}); | ||||
} | ||||
else { | ||||
ga('create', '{{.}}', {'storage': 'none'}); | ||||
} | ||||
| ||||
ga('set', 'anonymizeIp', true); | ||||
ga('send', 'pageview'); | ||||
| ||||
</script> | ||||
{{end}} | ||||
| ||||
<script async defer data-domain="bookstackapp.com" src="https://analytics.bookstackapp.com/js/plausible.js"></script> | ||||
| ||||
<!-- at the end of the HEAD --> | ||||
| |
| @ -337,7 +337,9 @@ h2.thin-margin { | |||
margin-bottom: $-m; | ||||
width: 280px; | ||||
background-color: #FFF; | ||||
border: 1px solid #DDD; | ||||
border-radius: 4px; | ||||
overflow: hidden; | ||||
box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1); | ||||
a { | ||||
display: block; | ||||
} | ||||
| @ -349,6 +351,9 @@ h2.thin-margin { | |||
padding: $-m; | ||||
min-height: 80px; | ||||
} | ||||
&:hover { | ||||
box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.15); | ||||
} | ||||
} | ||||
| ||||
| ||||
| |
Loading…
Add table
Add a link
Reference in a new issue