diff --git a/src/index.html b/src/index.html index c97f257..075a681 100755 --- a/src/index.html +++ b/src/index.html @@ -349,8 +349,10 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); - ga('create', 'UA-79146816-1', 'auto'); - ga('send', 'pageview'); + try { + ga('create', 'UA-79146816-1', 'auto'); + ga('send', 'pageview'); + } catch(e) {} diff --git a/src/js/mc-validate.js b/src/js/mc-validate.js index 1bfff7d..1dd82e5 100644 --- a/src/js/mc-validate.js +++ b/src/js/mc-validate.js @@ -239,7 +239,9 @@ //Disable form inputs disableInputs(); //Send GA event - ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist'); + try { + ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist'); + catch(e) {} // If the form has errors, display them, inline if possible, or appended to #mce-error-response } else {