We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3d4d2c commit 2c7698aCopy full SHA for 2c7698a
fathom-analytics.php
@@ -25,7 +25,12 @@
25
const FATHOM_OPTION_NAME = 'fathom_url';
26
27
function fathom_print_js_snippet() {
28
- $fathom_url = get_option( FATHOM_OPTION_NAME );
+ $fathom_url = get_option( FATHOM_OPTION_NAME, '' );
29
+
30
+ // don't print snippet if fathom URL is empty
31
+ if( empty( $fathom_url ) ) {
32
+ return;
33
+ }
34
35
// trim trailing slash
36
$fathom_url = rtrim( $fathom_url, '/' );
0 commit comments