WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Domain\Services

GoogleAnalytics::init() protected WC 1.0

Hook into WP.

{} It's a method of the class: GoogleAnalytics{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->init();

Code of GoogleAnalytics::init() WC 5.6.0

protected function init() {
	add_action( 'init', array( $this, 'register_assets' ) );
	add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
	add_filter( 'script_loader_tag', array( $this, 'async_script_loader_tags' ), 10, 3 );
}