Skip to content

Commit

Permalink
Dequeue the Blocks GA integration script
Browse files Browse the repository at this point in the history
  • Loading branch information
martynmjones committed Feb 28, 2024
1 parent 3b122a2 commit db44901
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions includes/class-wc-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ public function __construct() {

// utm_nooverride parameter for Google AdWords
add_filter( 'woocommerce_get_return_url', array( $this, 'utm_nooverride' ) );

// Dequeue the WooCommerce Blocks Google Analytics integration
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_script( 'wc-blocks-google-analytics' );
});

}

/**
Expand Down

0 comments on commit db44901

Please sign in to comment.