According to Google’s documentation on Enhanced Ecommerce Tracking, it’s possible to track the coupon code used alongside the transaction id, affiliation, revenue, tax, and shipping. Currently when making a purchase with a coupon the order coupon or product coupon in Google Analytics appears as (not set). Could support for this be added?
Optimize is a line of code that you can add to existing analytics.js tag to display experiences to your website visitors. This is a request to incorporate Google Optimize into the WooCommerce Google Analytics. https://support.google.com/optimize/answer/6262084