diff --git a/src/Helpers.php b/src/Helpers.php index 39c176a..d7fc8c8 100644 --- a/src/Helpers.php +++ b/src/Helpers.php @@ -45,7 +45,10 @@ public static function get_js_url( $local = false ) { */ public static function get_filename( $local = false ) { $settings = self::get_settings(); - $file_name = 'plausible'; + if(defined('PLAUSIBLE_PREFIX')) + $file_name = PLAUSIBLE_PREFIX; + else + $file_name = 'plausible'; if ( $local && self::proxy_enabled() ) { return self::get_proxy_resource( 'file_alias' );