diff --git a/includes/class-wc-google-analytics.php b/includes/class-wc-google-analytics.php index d25f45ec..df2d9748 100644 --- a/includes/class-wc-google-analytics.php +++ b/includes/class-wc-google-analytics.php @@ -723,7 +723,7 @@ public function async_script_loader_tags( $tag, $handle, $src ) { } // Check if the script has the async attribute already. If so, don't add it again. - $has_async_tag = preg_match('/^.*async.*$/', $tag); + $has_async_tag = preg_match( '/^.*async.*$/', $tag ); if ( ! empty( $has_async_tag ) ) { return $tag; }