diff --git a/best-cigars-guide/scripts/delayed.js b/best-cigars-guide/scripts/delayed.js index 6f8e378..943be6f 100644 --- a/best-cigars-guide/scripts/delayed.js +++ b/best-cigars-guide/scripts/delayed.js @@ -31,7 +31,7 @@ function loadGoogleAnalytics() { document.head.appendChild(tag); // Configuration script tag.onload = onGALoad; - tag.onerror = onError('Google Analytics'); + tag.onerror = () => onError('Google Analytics'); } // Check if Google Analytics is loaded