diff --git a/includes/class-wc-google-gtag-js.php b/includes/class-wc-google-gtag-js.php index 11786263..44733e3b 100644 --- a/includes/class-wc-google-gtag-js.php +++ b/includes/class-wc-google-gtag-js.php @@ -113,7 +113,7 @@ public function variant_data( $data, $product, $variation ) { * @return string */ public static function get_event_code( string $event, $data ): string { - return sprintf( "%s('event', '%s', %s)", self::tracker_var(), esc_js( $event ), ( is_array( $data ) ? self::format_event_data( $data ) : $data ) ); + return sprintf( "%s('event', '%s', %s);", self::tracker_var(), esc_js( $event ), ( is_array( $data ) ? self::format_event_data( $data ) : $data ) ); } /**