Try gtag instead

This commit is contained in:
Ian Gulliver
2018-12-08 06:10:50 +00:00
parent 28e5c2c0d6
commit c7a55e5b8f

View File

@@ -109,8 +109,10 @@ class PassMate {
let print = this.addElement('button', printStep, 'Click here to print the book!');
print.style.cursor = 'pointer';
printStep.addEventListener('click', () => {
let ga = window.ga || (() => {});
ga('send', 'event', 'Overview', 'print');
let gtag = window.gtag || (() => {});
gtag('event', 'print', {
'event_category': 'Overview',
});
window.print();
});