diff --git a/src/resources/js/download.js b/src/resources/js/download.js index 09639b9..a732f4d 100644 --- a/src/resources/js/download.js +++ b/src/resources/js/download.js @@ -154,7 +154,9 @@ $(function() { disableFields(true); - fathom.trackGoal('U9K2UTFV', 0); + if (fathom) { + fathom.trackGoal('U9K2UTFV', 0); + } $.ajax($(this).attr('href'), { method: "HEAD" }).done(function(data, status, jqxhr) { window.onbeforeunload = null; // disable exit confirmation before "redirecting" to download