Skip to content
AE DIGITAL
AutomationBy 6 min read

Automated weekly KPI report: Shopify, GA4 and ad data in one email

How to build an automated weekly KPI report that collects sales, traffic and ad spend every Monday and delivers it by email or Slack, with comparisons and alerts.

Article cover: the word “GA4” next to a glowing icon on a violet space background

Which KPIs belong in a weekly report

An automated weekly KPI report has one job: show the owner, on Monday, whether last week went better or worse and where to look. It does not replace dashboards, which remain useful for analysis. Dashboards have to be opened, though, and most weeks nobody opens them. An email or a Slack message with a handful of numbers arrives anyway.

Our rule is that every KPI must be able to change a decision. If a number goes up or down and nobody would act differently, drop it. For a small or mid-sized online store the starting list is:

  • Net sales: gross minus discounts and reversals (returns, refunds, cancellations).
  • Orders and average order value.
  • Sessions and conversion rate, both from GA4.
  • Ad spend per platform (Meta, Google Ads).
  • MER, meaning net sales divided by total ad spend.
  • Share of new customers, if the store relies heavily on repeat purchases.

Eight lines at most. B2B sellers need different indicators, such as qualified leads and pipeline, covered in our article on KPIs for a B2B website. The problem here is different: getting those numbers delivered without someone spending Monday morning copying them out of three separate admin panels.

Data sources and available APIs

The most important principle is one source per number. Sales come from Shopify, not GA4, because GA4 misses purchases from visitors who decline cookies or use blockers. Sessions come from GA4. Spend comes from the ad platforms. Mixing sources for the same KPI produces figures that never reconcile.

Shopify

The ShopifyQL sales schema exposes fields such as gross_sales, discounts, net_sales, orders and average_order_value. The documentation states that each row records one event and that an order can produce several rows when refunds or edits follow. That is why one week's net sales can include a return on an order placed the week before. Alternatively you can query the Admin API with the orders query filtered by created_at and sum inside the scenario, but that is slower and uses more operations.

GA4

The GA4 Data API has a runReport method: it needs at least one date range and one metric, and it accepts several date ranges in the same request, which is handy for getting this week and last week in a single call. A standard property gets 200,000 core tokens a day, far more than a weekly report needs.

Ad platforms

Meta provides the Insights API, with presets such as last_7d and metrics such as spend and impressions. Google Ads uses GAQL queries through the official API. Conversions reported by ad platforms follow their own attribution windows, so in the report we only show spend and calculate return using Shopify sales.

Building the collection scenario in Make

The structure is linear and we almost always build it this way:

  1. A scheduled trigger using Make's Weekly option, on Monday.
  2. A Set multiple variables module that calculates dates: start and end of last week and the week before, in the store's time zone.
  3. One call per source: the GA4 module (Generate a Report), a GraphQL request to Shopify through the HTTP module or the native app, an HTTP request to Meta's Insights API.
  4. A module that merges the values into a single object.
  5. Delivery: email, Slack or a row in a Google Sheet.

Ask the APIs for aggregated data. Downloading every order and summing with an iterator works, but it multiplies operations. If you actually need line-by-line detail for stock or bookkeeping, there is a dedicated flow in our guide to Shopify orders in Google Sheets.

Timing matters. Google states that for standard properties daily data can take up to 12 hours to process, and figures can still change over the following 24 to 48 hours. A report sent at 6am on Monday may show an incomplete Sunday. We schedule it around 10am on Monday, or on Tuesday for owners who want final numbers.

Calculations and week-over-week comparisons

A number on its own says little. For each KPI the report shows three values:

  • the value for the week just closed;
  • the percentage change from the previous week;
  • the change from the same week last year, when the history exists.

The year-over-year comparison matters for seasonal stores: an August week against the one before it always looks like a collapse. Derived figures such as average order value and MER should be calculated in the scenario from totals, not as an average of daily averages. Round percentages to one decimal and show the absolute value next to them: +40% on 5 orders is not news.

Format: email, Slack or spreadsheet

The right channel is the one the recipient already opens. The options we use most:

  • Email: a simple HTML table, with a subject line carrying the date and one headline number, for example "Week 40: net sales 18,400 EUR (+6%)". Good for owners who live in their inbox.
  • Slack: an incoming webhook receives JSON with a text field and posts it to the channel. The webhook URL contains a secret, so keep it in Make's connections, not in a shared document.
  • Google Sheet: one row per week. Not pleasant to read, but it builds the history you need for year-over-year comparisons.

Often the best setup does both: a short Slack or email message and, alongside it, a sheet row as an archive.

Alerts for unusual values

A weekly report arrives too late for breakages. If checkout breaks on Tuesday, finding out the following Monday costs six days of sales. So we add two kinds of check.

Thresholds in the report

In the message, any KPI that moves beyond a threshold is highlighted: for instance net sales more than 25% below the average of the last four weeks. Tune the threshold to the store, because with few weekly orders the natural swings are wide.

A light daily check

A separate scenario runs every morning and only verifies that yesterday had orders and sessions above a minimum. If the value is zero or close to it, it sends an alert. This is the single most useful check, and it costs very few operations.

Keeping the report running

Automated reports break silently: a token expires, an API version changes, someone renames a GA4 property. The worst outcome is a report full of believable zeros. A few practical rules:

  • if a source returns an error or an empty value, the report says so plainly ("Meta data unavailable") instead of showing 0;
  • turn on error handling for HTTP modules, as explained in our guide to Make scenario error handling;
  • keep a note with each KPI's definition and its source;
  • review the KPI list every quarter and remove the ones nobody comments on.

Shopify, for example, has just deprecated the returns field in the sales schema in favour of sales_reversals. Changes like this happen and need following. The KPI report is one of the cases in our ecommerce automation guide. If you would like us to build it with your sources and thresholds, the details are on our Zapier and Make automation service page.

Frequently asked questions

Which KPIs belong in a weekly ecommerce report?

Net sales, orders, average order value, sessions, conversion rate, ad spend and the ratio of sales to spend (MER). If repeat customers drive most revenue, add the share of new customers.

Make, Zapier or a script for the report?

For three or four sources and one weekly run, Make fits well: it has GA4 and Shopify modules, an HTTP module for other APIs and a weekly schedule. A script makes sense if you already run a server and someone maintains it.

Why don't the report numbers match the Shopify dashboard?

Usually because of the time zone of the date range, returns and edits recorded on different days, or comparing gross with net sales. Use the same definitions as Shopify's sales reports and the store's time zone.

How many Make operations does a weekly report use?

Very few: one run a week with about ten modules uses a few dozen operations a month. Usage only grows if you iterate over every order instead of asking the APIs for aggregated data.

Sources

  1. Create a report (Data API runReport) — Google for Developers
  2. Data freshness — Google Analytics Help
  3. ShopifyQL sales schema — Shopify
  4. Ads Insights API — Meta for Developers
  5. Schedule a scenario — Make
  6. Sending messages using incoming webhooks — Slack

Related articles

Tell us what isn't working.

We reply within one business day with a first opinion and, if it makes sense, a quote.

Write to us