add dna script

This commit is contained in:
Matteias Collet 2020-06-30 22:32:48 +02:00
parent a766853e66
commit 12fcdaa4f5
2 changed files with 19 additions and 0 deletions

View file

@ -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' }],
],
/**

View file

@ -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);
})();