Commit 45be39517c for woocommerce
commit 45be39517cce31f7024ba3efbc40ec5ffeb8fc37
Author: Brian <brian@brianhaas.li>
Date: Wed Nov 26 10:10:18 2025 +0100
Add missing UTM Parameters (#60397)
* add missing utm parameters
* Add changefile(s) from automation for the following project(s): woocommerce
* fix lint issues
---------
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Justin P <228780+layoutd@users.noreply.github.com>
diff --git a/plugins/woocommerce/changelog/60397-patch-8 b/plugins/woocommerce/changelog/60397-patch-8
new file mode 100644
index 0000000000..1510778b9c
--- /dev/null
+++ b/plugins/woocommerce/changelog/60397-patch-8
@@ -0,0 +1,4 @@
+Significance: minor
+Type: enhancement
+
+Add missing UTM Parameters to order attribution
\ No newline at end of file
diff --git a/plugins/woocommerce/templates/order/attribution-details.php b/plugins/woocommerce/templates/order/attribution-details.php
index dcac2549ce..ac514488ce 100644
--- a/plugins/woocommerce/templates/order/attribution-details.php
+++ b/plugins/woocommerce/templates/order/attribution-details.php
@@ -108,6 +108,33 @@ defined( 'ABSPATH' ) || exit;
</span>
<?php endif; ?>
+ <?php if ( array_key_exists( 'utm_content', $meta ) ) : ?>
+ <h4>
+ <?php esc_html_e( 'Content', 'woocommerce' ); ?>
+ </h4>
+ <span class="order-attribution-utm-content">
+ <?php echo esc_html( $meta['utm_content'] ); ?>
+ </span>
+ <?php endif; ?>
+
+ <?php if ( array_key_exists( 'utm_term', $meta ) ) : ?>
+ <h4>
+ <?php esc_html_e( 'Term', 'woocommerce' ); ?>
+ </h4>
+ <span class="order-attribution-utm-term">
+ <?php echo esc_html( $meta['utm_term'] ); ?>
+ </span>
+ <?php endif; ?>
+
+ <?php if ( array_key_exists( 'utm_id', $meta ) ) : ?>
+ <h4>
+ <?php esc_html_e( 'ID', 'woocommerce' ); ?>
+ </h4>
+ <span class="order-attribution-utm-id">
+ <?php echo esc_html( $meta['utm_id'] ); ?>
+ </span>
+ <?php endif; ?>
+
</div>
<?php if ( array_key_exists( 'device_type', $meta ) ) : ?>