Automattic\WooCommerce\Internal\Orders

MobileMessagingHandler::prepare_utm_parameters()private staticWC 1.0

Prepares array of parameters used by WooCommerce.com for tracking.

Method of the class: MobileMessagingHandler{}

No Hooks.

Return

Array.

Usage

$result = MobileMessagingHandler::prepare_utm_parameters(;

MobileMessagingHandler::prepare_utm_parameters() code WC 7.1.0

private static function prepare_utm_parameters(
	string $campaign,
	?int $blog_id,
	string $domain
): array {
	return array(
		'utm_campaign' => $campaign,
		'utm_medium'   => 'email',
		'utm_source'   => $domain,
		'utm_term'     => absint( $blog_id ),
	);
}