diff --git a/index.html b/index.html index dfaf4d5..391912f 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,15 @@ + + + + diff --git a/passmate.js b/passmate.js index 62708e5..7b573fc 100644 --- a/passmate.js +++ b/passmate.js @@ -109,6 +109,8 @@ 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'); window.print(); });