added pixik js event tracking

This commit is contained in:
2018-04-18 09:21:16 +02:00
parent 7d11684731
commit 7356c6cec6
7 changed files with 4347 additions and 56 deletions
@@ -299,6 +299,12 @@
// console.log(window.location);
// /!\ we can not pushestate with absolute url /!\
history.pushState(state, null, state.url);
// piwik
if(typeof _paq !== 'undefined'){
// trackEvent(category, action, [name], [value])
_paq.push(['trackEvent', 'AjaxNav', 'loaded', state.url]);
}
}
};