You can output the UTM conversion attribution report data in the WP REST API for the WordPress User and WooCommerce Customer endpoint using our AFL UTM Tracker plugin.
Requirement:
- AFL UTM Tracker version 2.4.12
How to enable?
Add the following code in your wp-config.php file.
define( 'AFL_WC_UTM_SWITCH_REST_API_USER', true );
You will be able to enable this in our Settings page in future updates.
Endpoints
WordPress Users
/wp-json/wp/v2/users/<id>
WooCommerce Customers
/wp-json/wc/v3/customers/<id>