Feature Request: Add Hooks for Custom Query Parameters/Metrics
-
Hi WooCommerce Analytics team,
The beta is a great step forward for data-driven insights! I’d like to ask if there are plans to add filter hooks for modifying query parameters when fetching order attribution data.
Use Case:
Many stores need to track custom metrics (e.g., internal campaign IDs, regional tags, A/B test variants). Currently, this requires overriding core code, which complicates updates and maintenance.Suggestions:
- Introduce hooks like?
woocommerce_analytics_orders_query_args
?to modify query arguments. - Add support for extending REST API queries via filters (e.g.,?
clauses_join
,?clauses_where
).
This would align with WordPress/WooCommerce’s extensibility and let developers adapt the plugin to unique merchant needs without touching core files.
Is this functionality planned for future releases? If not, could it be considered?
Thanks for your work on this!
- Introduce hooks like?
- You must be logged in to reply to this topic.