added open-web-analytics script

This commit is contained in:
Dan Šuster 2020-04-07 23:48:48 +02:00
parent d1ed8ae03c
commit c808aa8884
Signed by: dan
GPG Key ID: ADA5CF11515C3242
2 changed files with 18 additions and 0 deletions

View File

@ -12,6 +12,9 @@ module.exports = {
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/icon_golem.png' }
],
script: [
{ src: '/analytics.js', async: true }
]
},
/*

15
static/analytics.js Normal file
View File

@ -0,0 +1,15 @@
var owa_baseUrl = 'https://owa.thegolem.cz/'
var owa_cmds = owa_cmds || []
owa_cmds.push(['setSiteId', '662f5e076e243cb867dae2f6c445f428'])
owa_cmds.push(['trackPageView'])
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script')
_owa.type = 'text/javascript'
_owa.async = true
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl)
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js'
var _owa_s = document.getElementsByTagName('script')[0]
_owa_s.parentNode.insertBefore(_owa, _owa_s)
}())