Newer versions of WC include attribution.
this should help give you the fields being used in the newer versions:
MAX(pm_source.meta_value) as utm_source,
MAX(pm_medium.meta_value) as utm_medium,
MAX(pm_campaign.meta_value) as utm_campaign,
MAX(pm_content.meta_value) as utm_content,
MAX(pm_term.meta_value) as utm_term,
MAX(pm_referrer.meta_value) as referrer,
MAX(pm_source_type.meta_value) as source_type,
MAX(pm_device_type.meta_value) as device_typeI understand the UI on WC only shows one field on the orders pages, but having ALL of them will be 1000 times better, providing the value needed :)
thanks
