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.
session entities anymore, because server side tracking is no longer supported.device-detector-js dependency and replaced with regex from https://stackoverflow.com/questions/11381673/detecting-a-mobile-browserdevice-detector-js to detect device type instead of ua-parser-js, because we see a lot of 'Unknown' devices in production.pageVisit mutation.pageVisit mutation.