DataFirefly Dashboard: BI dashboard, statistics and exports (dfdashboard)
Install the module, read and compare your figures, set goals, receive alerts and reports, export your data and connect your tools through the API.
DataFirefly Dashboard (dfdashboard) shows the activity of your PrestaShop shop in the back office: sales, margin, products and stock, customers, carts, processing times and vouchers, compared with the period of your choice. Every figure has its definition, available through the ? button on its card. The module also offers goals, alerts, e-mail reports, exports and a read-only API.
This documentation covers version 2.0.0, compatible with PrestaShop 1.7.8 to 9.x and PHP 7.4 to 8.5. No override, no external service: all calculations run in your database and the charts are served by your shop.
Installation and upgrade
- Open Modules > Module Manager and click Upload a module.
- Drop the
dfdashboard-2.0.0.zipfile. - Open Sell > BI dashboard, just below Stats. The Configure button in the module manager also leads there.
Upgrading from version 1.0
Upload the 2.0.0 zip over the installed module, without uninstalling it. The upgrade creates the new tables, moves the tab under Sell and starts building the statistics. The native Stats page becomes available in the menu again.
First build of the statistics
The module summarises your orders only once into its own tables, in batches of 1,000 orders. When you open the page, a Building the statistics block shows the progress: leave the page open; if you close it, the build resumes where it stopped. On our test shop, 200,000 orders were summarised in 40 to 200 seconds depending on the server load.
After that, the figures stay up to date on their own: each new order, status change or credit slip is added to a queue, processed in the back office or by the cron task. The shop is never slowed down.
Cron task
In Settings, the Cron task block gives a secret URL. Call it every 15 minutes from your host’s task scheduler. It:
- catches up orders changed without going through the hooks (import, direct SQL query, another module);
- evaluates the alert rules;
- sends the scheduled reports and exports.
Without a cron task, the figures are updated when orders change and when the dashboard is opened, but scheduled reports are not sent and alerts are only evaluated with the Check now button.
Period, comparison and filters
The bar at the top of the page applies to all sections:
- Period: 15 choices (today, last 7, 30 or 90 days, this month, last quarter, year to date, last 12 months…) or Custom dates.
- Compare with: Previous year, same dates (29 February becomes 28 February), Previous year, same weekdays (364 days earlier), Previous period, Custom comparison or No comparison.
- Grouping: automatic, by day, week, month or year.
- Filters: shops, delivery countries, order currencies, customer groups, payment modules, categories (with sub-categories), brands and customer type (B2B or B2C). Active filters appear as tags that you remove with one click.
A period in progress (this month, this year…) stops at today and is compared with the same number of elapsed days. Dates are those of the shop’s time zone.
Saved views… stores a period, a comparison, filters and the layout of the overview, so you can get them back in one click. A view can open by default.
Overview
The overview brings together the key figures: revenue, orders, average order value, gross margin, new customers, conversion rate and net revenue, with the value of the comparison period and the change.

Further down, the cards show the month’s goal, best-selling products, top-level categories, countries, payment methods and orders by weekday and hour.

Click Customise layout to move the cards with the mouse or with the move up and move down buttons, or to hide them. Then save the view to keep this layout.
Definitions
The ? button on each card opens the exact definition of the figure: what is counted, the basis (tax excluded or tax included), the date used and the statuses taken into account. This definition follows your settings.

Each chart also has a Table button that shows the values, and a CSV export of the card.
Sales
The Sales section shows revenue over time against the comparison period (dotted grey line), with the events you have recorded. It then breaks down sales by delivery country, region or department, currency, payment method, carrier, customer group, shop, businesses and consumers, guests and registered accounts.

The Taxes by rate block breaks down the VAT on products and shipping by rate, with gift wrapping and the effect of cart discounts; the module checks that the total matches the tax of the orders. The Refunds and credit slips block separates the credit slips deducted from net revenue and the fully refunded orders, which are already excluded from revenue.

Products and stock
Best and lowest sellers can be sorted by revenue, quantity, margin or orders. The Rank vs comparison column shows the products that are moving up or down. Refunded quantities are shown separately.

Categories count each product only once, in its top-level category. The ABC analysis classifies products: A for 80% of revenue, B for the next 15%, C for the remaining 5%.
The stock block lists out-of-stock items (combinations included), low-stock items with their cover in days, and active products not sold in the period. Lost sales are an estimate: average daily sales over the last 90 days multiplied by the average price, because the date the item went out of stock is not known.

Customers
A new customer is a customer whose first validated order ever falls within the period. Several customer records with the same e-mail (a returning guest, or a guest who later creates an account) count as a single customer. The section also shows returning customers, the repeat purchase rate, orders per customer and the observed value after 3, 6 and 12 months.
Monthly cohorts group customers by the month of their first order. Each cell gives the share of them who ordered again N months later and the cumulative revenue per customer. These are observed values, with no projection.

RFM segments classify the customers of the last 24 months by the recency, frequency and amount of their purchases: Champions, Loyal, Potential loyalists, New, Need attention, At risk, Hibernating and Lost. The Top customers table shows names only to employees with the Customers permission, if you allow it in the settings; otherwise customers are replaced by a stable code.

Carts and conversion
A cart is abandoned when it contains products, was modified during the period and has not led to an order after 24 hours (adjustable). By default, only the carts of identified customers are counted; anonymous carts are shown separately. The abandonment rate compares abandoned carts with carts that became orders. The value of abandoned carts is an estimate at the current catalogue price excluding tax.

The conversion rate divides orders by the visits recorded by the “Data mining for statistics” module (statsdata). If visits are not recorded, or if a country, currency or product filter is active, the module shows “Not available” with the reason.
If DataFirefly Cart Restore or DataFirefly Funnel & Heatmap is installed, the section shows their links and their main figures.
Operations
The Operations section measures processing times from the status history: order → payment, payment → shipping, shipping → delivery and order → delivery. For each step: the median, the time within which 9 out of 10 orders fall, the average and the share processed within 48 h. A table compares the carriers.

You will also find all orders of the period by current status, whether or not they are counted as sales, and merchandise returns.
Vouchers
For each voucher or cart rule: the number of orders that use it, its cost excluding tax and the revenue of those orders. An order that uses two vouchers counts for both.
Goals and events
Set monthly revenue and order goals, for one shop or for all of them. The overview shows the month’s progress and, from the 3rd day, an end-of-month projection with its range. This projection is an estimate: it extends the daily average and does not take seasonality into account.

Events (sale or promotion, marketing campaign, incident, other) are recorded with a start date and an end date. They appear on the revenue charts to explain a peak or a dip.
Alerts
Eight business alert rules can be enabled, each with its own threshold and recipients:
- Revenue drop, Orders drop, Average order value drop: last 7 full days compared with the same weekdays one year earlier;
- Best-seller out of stock: one of the 20 best-selling products of the last 30 days has no stock left;
- High cart abandonment and High refund rate;
- Low margin rate, only when costs are known for most sales;
- Monthly goal at risk: estimated end-of-month revenue below a share of the goal.

Alerts are evaluated by the cron task or with the Check now button, at most once a day per rule. They appear in the module (unread alert counter), in the PrestaShop dashboard widget and, if you wish, by e-mail. Technical alerts (errors, response times, payment failures) are handled by DataFirefly Monitor.
Scheduled reports
Create a daily report (the previous day), a weekly one (the previous week, every Monday) or a monthly one (the previous month, on the 1st). Choose its content (key figures, best-selling products, categories, countries, payment methods, alerts), its language, its format (HTML or PDF) and its recipients. A report can also attach a data export in CSV, XLSX or JSON, up to 8 MB.
Scheduled e-mails never contain personal data: customers are pseudonymised in them. A report is computed with the permissions of the employee who created it; if that employee loses the permissions, the report is no longer sent. Send now lets you test the sending.
Exports
The Export builder uses the period, filters and shops selected in the top bar. Choose:
- the Data: sales summary, orders (one row per order), raw order lines, products, combinations, categories, brands, stock alerts, customers, cohorts, countries, payment methods, carriers, vouchers, taxes or credit slips;
- for the sales summary, the grouping by day, week, month or year and the breakdown by shop, country, currency, payment method, carrier, group, B2B/B2C, category or brand;
- the columns, the header row (readable names or technical keys) and the format: CSV, XLSX or JSON.

The file is produced as a stream: it downloads as it is produced, without exhausting the server’s memory. On our test shop, 153,419 orders are exported in 3.4 s as CSV and in 17.7 s as XLSX. The separator, encoding, decimal mark, BOM and maximum number of rows are set in Settings.
By default, customers are pseudonymised. The Include names and e-mails box only appears for employees with the Customers permission. The Export log keeps track of every export: employee, data, number of rows, channel and whether personal data was included. Cells that start with =, +, - or @ are neutralised for spreadsheets.
These exports are meant for analysis. For accounting entries (FEC, Sage, EBP, Pennylane…), use DataFirefly Accounting Export.
Read-only API
The API feeds Google Sheets, Power BI, Looker Studio or your own scripts. Nothing can be changed through the API.
- In the API section, tick Enable the API.
- Create one token per tool: name, number of requests per minute, allowed datasets and, if you have the Customers permission, whether personal data is allowed.
- Copy the token right away: it is only shown once, and the module only keeps a fingerprint of it.

Send the token in the Authorization: Bearer header, or in the token= parameter when the tool cannot send a header. Example:
curl -H "Authorization: Bearer dfd_xxxxxxxx_…" \ "https://your-shop.com/module/dfdashboard/api?dataset=sales&from=2026-01-01&to=2026-03-31&level=month"
Main parameters:
dataset: sales, orders, order_lines, products, combinations, categories, manufacturers, stock, customers, cohorts, countries, payments, carriers, vouchers, taxes, refunds;from,toin YYYY-MM-DD format, orpreset(for examplelast30);levelanddimensionfor the sales summary;- filters
shops,countries,currencies,payments,groups,categories,manufacturers,customer_type; format:json(default) orcsv;columnsto choose the columns;- pagination with
pageandper_page(up to 5,000), or withcursorfor orders, order_lines and refunds.
The exact URL of your shop and the Google Sheets (IMPORTDATA), Power BI and Looker Studio examples are in the Documentation block of the API section. Beyond the request limit, the API responds with 429 and the Retry-After header. Each token works with the permissions of the employee who created it and can be revoked in one click.
Settings
Definitions of the figures
- Orders counted as sales: the statuses marked “Consider the associated order as validated” in Orders > Statuses (recommended, same as PrestaShop), or only the statuses you tick.
- Revenue: tax excluded or tax included.
- Shipping and gift wrapping: not included (products after discounts) or included (order total).
- Date used: order date, or invoice date (orders without an invoice are then excluded).
- Default comparison.
- Exclude test orders: one e-mail or
@domainper line. - Business customers (B2B): company name or VAT number filled in, or selected customer groups.
Changing these definitions rebuilds the statistics in the background, in a few minutes.
Carts and stock
Delay before a cart counts as abandoned, counting only identified customers, low stock threshold for products that do not have one.
Privacy (GDPR)
Showing customer names to employees with the Customers permission, masking e-mail addresses, and showing a summary on the PrestaShop dashboard.
Exports and data status
CSV file format and maximum number of rows per export. The Data status block shows the orders waiting, the last cron run and the last full rebuild; the Rebuild the statistics button rebuilds all the tables from the orders.
Employee permissions
The module respects the permissions of each employee profile. Order figures require permission to view orders; customers require the Customers permission; products and stock, the Catalog permission; carts and vouchers, the corresponding permissions. A section that is not allowed shows “Not available with your permissions”. The settings require permission to edit the module. In multistore, an employee only sees the shops they have access to.
Dark theme and accessibility
The theme button switches between the light, dark and automatic themes. Numbers, dates and amounts are shown in the format of the employee’s language.

The module can be used with the keyboard: skip link, tabs navigable with the arrow keys, data tables for every chart. The chart colours were chosen to stay readable for colour-blind users.
PrestaShop dashboard widget
If the setting is enabled, the back-office home page shows a summary: today’s revenue and orders, comparison with the same day last week, the current month and unread alerts. It only reads the daily summary and has no measurable effect on the back-office speed.
Performance
Measurements made on PrestaShop 9.1.5 in production mode, with 200,005 orders across 2 shops:
- a section over 30 days is computed in 0.06 to 1.4 s, over 12 months in 0.06 to 3.4 s;
- a new display from the cache responds in 0.06 s; the cache is cleared as soon as orders change;
- the PrestaShop dashboard with the widget loads in 0.12 s.
Times depend on your server and on the volume of orders.
Frequently asked questions
Why does my revenue differ from the native dashboard?
The definitions differ. By default, the module counts products excluding tax after discounts, without shipping or wrapping, on the order date. The native dashboard uses the invoice date, counts gift wrapping and deducts from products the “free shipping” part of vouchers. Choose the invoice date in the settings to get closer to it.
Is a refunded order deducted twice?
No. An order moved to a non-validated status, such as “Refunded”, leaves the revenue. Its credit slip is then shown separately and is not deducted a second time from net revenue.
Why is the margin not calculated on all sales?
The margin uses the purchase cost recorded on each order line. Lines without a cost are excluded and the card shows the share of sales covered. Fill in the purchase price of your products to improve the coverage of future orders.
A product changed category: where are its past sales?
In its current category. Categories and brands are read from the current state of the catalogue.
How do I uninstall the module?
From the module manager. Uninstalling removes the module’s tables, settings, tab and hooks. Your orders are never modified.