From 12fcdaa4f501ea56b9f12c46d5866ede3ae91f4a Mon Sep 17 00:00:00 2001 From: Matteias Collet Date: Tue, 30 Jun 2020 22:32:48 +0200 Subject: [PATCH] add dna script --- docs/.vuepress/config.js | 1 + docs/.vuepress/public/dna.js | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 docs/.vuepress/public/dna.js diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index a556828..33b7622 100755 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -7,6 +7,7 @@ module.exports = { ['meta', { name: 'theme-color', content: '#3eaf7c' }], ['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }], ['meta', { name: 'Cache-control', content: 'public,max-age=3600' }], + ['script', { type: 'text/javascript', src: '/dna.js' }], ], /** diff --git a/docs/.vuepress/public/dna.js b/docs/.vuepress/public/dna.js new file mode 100644 index 0000000..ffea777 --- /dev/null +++ b/docs/.vuepress/public/dna.js @@ -0,0 +1,18 @@ +var _paq = window._paq || []; +_paq.push(['setRequestMethod', 'POST']); +_paq.push(['disableCookies']); +_paq.push(['trackPageView']); +_paq.push(['enableLinkTracking']); +(function() { + var e = 'https://dna.zint.ch/'; + _paq.push(['setTrackerUrl', e + 'pdna']); + _paq.push(['setSiteId', '2']); + var a = document, + t = a.createElement('script'), + p = a.getElementsByTagName('script')[0]; + (t.type = 'text/javascript'), + (t.async = !0), + (t.defer = !0), + (t.src = e + 'jdna'), + p.parentNode.insertBefore(t, p); +})();