Try gtag instead
This commit is contained in:
@@ -109,8 +109,10 @@ class PassMate {
|
|||||||
let print = this.addElement('button', printStep, 'Click here to print the book!');
|
let print = this.addElement('button', printStep, 'Click here to print the book!');
|
||||||
print.style.cursor = 'pointer';
|
print.style.cursor = 'pointer';
|
||||||
printStep.addEventListener('click', () => {
|
printStep.addEventListener('click', () => {
|
||||||
let ga = window.ga || (() => {});
|
let gtag = window.gtag || (() => {});
|
||||||
ga('send', 'event', 'Overview', 'print');
|
gtag('event', 'print', {
|
||||||
|
'event_category': 'Overview',
|
||||||
|
});
|
||||||
window.print();
|
window.print();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user