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 of the past year.
vendure-config.ts
:metrics
on 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 week/monthYou can implement the MetricStrategy
interface and pass it to the MetricsPlugin.init()
function to have your custom metric visible in the Widget.
Thanks @dalyathan for his contributions on this plugin.