Visualize your shop's average order value, orders per month and more customizable graphs
npm install @pinelab/vendure-plugin-metrics
A plugin to visualize your shops most important metrics.
vendure-config.ts
:Advanced Metrics
to your dashboard.Metric results are cached in memory to prevent heavy database queries every time a user opens its dashboard.
order.totalWithTax
of the orders per monthYou can implement the MetricStrategy
interface and pass it to the MetricsPlugin.init()
function to have your custom metric visible in the Widget.
Below is the implementation of the AOV metric, already included in the plugin, but it serves as an example of how to implement a custom metric.
Special thanks to@dalyathan for his contributions on this plugin.