From 7d5f7a502cdd602f2fda84647bc39541335ea5fb Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 8 Dec 2018 01:15:12 +0000 Subject: [PATCH] Google Analytics --- index.html | 9 +++++++++ passmate.js | 2 ++ 2 files changed, 11 insertions(+) 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(); });