Skip to content

Analytics

The Reports > Analytics page shows reports on the live data of the store. It reads the orders, invoices, credit memos, carts, customers and stock directly. It does not need Refresh Statistics, so a new order shows in the next report.

The classic reports under Reports stay. They read the tables that Refresh Statistics fills. The Report metrics page lists where the numbers of the two can be different.

Run a ready-made report

  1. Go to Reports > Analytics.
  2. In the Report menu, select a report, for example Sales overview or Sales by payment method.
  3. Change the controls above the report. Each change runs the report again.

When you change a control, the Report menu shows Custom report. A saved report that you change shows "(changed)" after its name.

The address of the page holds the report. Copy the address to send the same report to another administrator.

The controls

Control What it does
Report A ready-made report or a saved report. It sets all the other controls
Data The data of the report: orders, order items, invoices, credit memos, taxes, customers, carts, cart items, stock, product views, search terms, 404 errors, reviews, tags or downloads. A change keeps the period, the store view and the metrics, groupings and filters that the new data also has
Period The days of the report, for example Last 30 days. Custom shows a From and a To day
Compare with The period before has the same number of days and ends the day before the period. The year before has the same days one year earlier
Date The date that puts an order in the period: the order date, or the date of its last change
Store view One store view, or all the store views that you can see
Orders The orders that count. See Orders that count
Metrics The numbers in the columns. Click the counter to add or remove a metric
Group by Up to three groupings. A date grouping has a step: hour, day, week, month, year, hour of the day or day of the week
Filters A condition on a field, for example Payment method is Check / Money order

The days of a period are days in the time zone of the default configuration (System > Configuration > General > Locale Options > Timezone). The week starts on the day that First Day of Week sets. Amounts are in the global currency. Group the orders by Order currency to see how much the customers buy in each currency, still in the global currency.

A period with hourly steps can have at most 31 days, and a period with daily steps at most 400 days. A period by week, month or year can have at most about 100 years.

A report with only a date grouping shows the newest date first. Click a column title to sort the rows by that column. A change shows in green when it is good and in red when it is bad. For a metric such as Returns, a lower number is good.

Read the chart

Each metric has a card above the chart, with its total, the total of the earlier period and a small line of its values over the period. Click a card to show that metric in the chart. A report with more than six metrics shows five cards. Click Show more for the other cards.

The chart shows one metric. Its type follows the first grouping:

  • A date grouping shows a line. The earlier period is a gray dotted line on the same axis.
  • Hour of the day and Day of the week show vertical bars.
  • Any other grouping shows horizontal bars, with the 15 biggest values.
  • With two groupings, the chart shows the 5 biggest values of the second grouping as five lines or five bar colors.

The buttons Auto, Line, Bar and Table on the chart change its type. Table hides the chart. A report with two groupings also has Matrix: a table with one row for each value of the first grouping and one column for each value of the second grouping. The color of a cell grows with its value. Cumulative adds each cell to the cells before it in its row. Share of the first column shows each cell as a percent of the first cell of its row.

Customer cohorts

The ready-made report Customer cohorts groups the customers by the month of their first order. Each row is one month of first orders. Each column is a number of months after that month: column 0 is the month of the first order, column 1 the month after it, and so on. A cell shows how many customers of the row ordered in that month.

Click Share of the first column to see the percent of the customers of each row who ordered again, for example 25 % in column 3.

  • A customer is a customer email, so a guest and a registered customer with the same email are one customer. The first order is the first placed order, in any store view.
  • The report keeps only the customers whose first order is in the period, with the filter First order in the period. Remove the filter to also see the later orders of older customers.
  • Change the metric of the chart to Net sales or Orders to see the amounts of each cohort.
  • Click Cumulative with Net sales to see the lifetime value of each cohort: the net sales of its customers up to each month. Add Share of the first column to see this value as a multiple of the first month. A row stops at the month of the end of the period.
  • Filter by Customer segment to see the cohorts of one segment only.

The ready-made report Weekly customer cohorts does the same by week, on the last 90 days. A row is the week of the first order, with the first day of the week as its name. The first row can be a part of a week, because the period starts on any day.

Customer segments

When the store has active customer segments, the Orders and Customers data have the grouping and the filter Customer segment. For example, group the net sales by segment, or filter the sales overview to one segment.

  • A segment holds the customers that match its conditions at its last refresh, not on the date of an order. An order counts in the segments of its customer now.
  • A customer can be in several segments, so an order counts once in each segment of its customer. The rows then do not add up to the total, and the report shows a warning.
  • Guest orders and the customers in no segment show as (none).

When the period changes, a date grouping changes its step: hours for one or two days, days up to two months, weeks up to six months, then months.

Look inside a number

Click a row of the table, or a point or a bar of the chart. A menu opens:

  • Only this value keeps only this row. For a value such as a payment method, it adds a filter. For a day, a week or a month, it changes the period to that day, week or month, with a smaller step.
  • Break down by keeps only this row and groups it by another field.
  • Show the records lists the orders, invoices, customers or other records behind the row, with a link to each one.
  • Explain the change shows which values caused the change of the row against the earlier period.
  • Add a note adds a note on the first day of the row. It shows for a day, a week, a month or a year.

The steps show above the report. Click a step to go back to it.

The records need the permission of the records themselves. For example, the orders need Sales > Orders > Actions > View.

Explain a change

Click Explain the change on the chart. The page compares the metric of the chart with the earlier period, or with the period before when the report has no comparison. For each grouping, it lists the values with the biggest change, for example the payment methods or the countries. The cohort groupings, such as Month of the first order, are not in this list: they describe the customers, not the cause of a change.

Each value shows its change and its change in percent. A value that was small in the earlier period, under 5% of the earlier total of its grouping, shows no percent, because a change from 1 to 9 is +800% and tells less than the change itself. When two groupings split the records in the same way, such as Customer group and Customer type when only guests and one group order, the page shows only the first one. When the metric adds up over the values, such as Net sales or Orders, the tooltip of a value also shows its share of the total change. An average, such as Average order value, has no share. Click a value to keep only it.

Notes

A note marks a day on the chart, for example the day of a newsletter. Click Add a note on a chart over time, or click a day on the chart and select Add a note. Then enter the day and the text. The note shows as a dotted line on the chart with its text above the dot, in the tooltip of its day, and as a label under the chart, for every administrator. Only the author deletes a note.

The chart also shows the first day of each active cart price rule, as Promotion starts.

Targets

A target is a number for one month, for example net sales of 30,000 in June.

  1. Show the metric in the chart.
  2. Click Targets.
  3. Select the month and enter the target.
  4. Click Save.

A report that groups by the date only, with no filter, shows the target as a green dotted line and as a percent on the card of the metric. For a day or a week, the target is the monthly target divided by the days of the month. A target set while one store view is selected applies to that store view. Otherwise, the target applies to the report of all the store views. Only a metric that adds up, such as Net sales or Units, can have a target.

Forecast

With the period This month or This year, the card of each metric that adds up also shows a forecast: the total at the end of the month or the year, if the rest of the period has the same pace as the days so far. For example, net sales of 10,000 on the morning of 16 November give a forecast of about 20,000 for November. When the metric has targets, the card also shows the forecast as a percent of the target of the whole month or year.

  • The forecast starts after a tenth of the period: on the 4th day of a month, or in the second half of January.
  • It does not know about seasons, campaigns or holidays. Compare it with the same month of the last year before you act on it.

Pinned reports on the dashboard

Open a saved report and click its star, next to Save. The report then shows as a box in the left column of the admin Dashboard, after Sales Overview. The box shows the total of the first metric, its change and a small chart. Click the name of the box to open the report on the Analytics page. Click the star of the box to remove it from the dashboard.

Each administrator pins reports for their own dashboard. A shared report that its owner stops sharing leaves the dashboard.

Get a report by email

  1. Open a saved report.
  2. Click Email, next to the star.
  3. In Send me this report, select Each day, Each week or Each month.
  4. To get the email only when a number changes, select Only when a metric changes against the period before. Then select the metric, the direction and the change in percent, for example Net sales falls by at least 20 %.
  5. Click Save.

The email goes to the email address of your admin account. It shows the period, the total of each metric with its change, and the first 10 rows. The link at the end opens the report on the Analytics page.

The store sends the emails at the Hour of the Report Emails, in the time zone of the default configuration. A weekly email goes on the first day of the week, and a monthly email on the first day of the month. A saved report keeps its period as a named period, so a weekly email of a report on Last 7 days shows the last 7 days.

An alert checks the metric at each sending time. It compares the period of the report with the earlier period of the report, or with the period before when the report has no comparison. When the change reaches the percent, the email goes, and it also lists the values that changed the metric the most. When the change does not reach the percent, no email goes. Only a report with a period can have an alert.

The email shows the report as your role sees it. You can get a report by email if it is yours or shared. When its owner deletes it or stops sharing it, the emails stop. To stop an email, click Email and select Never.

Orders that count

The order reports have an Orders control with three values:

  • Placed orders (not new or pending payment): every order except the orders in the state "new" or "pending payment". A canceled order counts as an order, with no amount. This is the default, and the classic Orders, Tax and Shipping reports count the same orders.
  • Orders that are not canceled: the classic Invoiced, Refunded, Bestsellers and customer reports count these orders.
  • All orders: every order, as the classic Coupons report does.

Save a report

  1. Build the report.
  2. Click Save.
  3. Enter a name.
  4. To show the report to the other administrators, select Share with the other administrators.
  5. To show the report on your dashboard, select Show on my dashboard.
  6. Click Save.

The report shows under Saved reports in the Report menu. Only its owner changes or deletes a saved report. A saved report keeps its period as a named period, so Last 30 days always shows the last 30 days.

Export a report

Click Export CSV. The file has every row of the report, not only the rows of the page.

If the report has more rows than Rows per Page, the export runs in the background. A message in the admin inbox links to the file when it is ready. A daily job deletes an export file after 7 days.

Personal data

The groupings and filters with personal data (customer, customer email, billing postcode) show only for an administrator whose role allows Customers > Manage Customers.

Each data set needs the permission of its classic report. For example, the order items need Reports > Products. The page itself needs Reports > Analytics.

Settings

System > Configuration > Reports > Analytics has these settings:

Setting What it does
Rows per Page The most rows that the page and the API show at once. A larger CSV export runs in the background
Rows per Export The most rows of one CSV export
Cache Lifetime of a Current Period How long a report whose period includes today stays in the cache, in seconds
Cache Lifetime of a Past Period How long a report on a past period stays in the cache, in seconds
Dead Stock After (days) A product in stock with no sale in this number of days is dead stock
Abandoned After (hours) An active cart with an email and no order is abandoned after this time without activity
Recent Carts (hours) An active cart is recent when its last activity is within this time
Attributes for Sales by Attribute Each attribute gets a grouping and a "Sales by" report in the order items
Daily Totals from (days) Off (0) by default. An order report on a period of at least this number of days reads the daily totals of the orders, when it can. The numbers are the same, and a store with many orders gets its reports much faster
Hour of the Report Emails The hour, from 0 to 23 in the default time zone, when the store emails the saved reports
Sender of the Report Emails The store email address that sends the report emails
Template of the Report Emails The email template of a report email

A save of this section clears the cached reports.