Help › Tools and settings

Custom widgets, calculated metrics and combined widgets

Build your own tables and charts from one source, numbers worked out from a formula, and charts or tables that mix several sources.

When the ready widgets are not enough, you can build your own. There are three kinds:

  • Custom widget: a table or chart from one source, split by up to two dimensions (for example GA4 sessions by channel group and device, or Meta Ads spend by campaign and age).
  • Calculated metric: one number worked out from up to five others with a formula (for example Meta + Google spend, or revenue per session).
  • Combined widget: one chart or table with metrics from several sources (for example Meta, Google and TikTok spend per day on one chart).

Where to find it

Customise → + Add widget → the buttons at the top of the window: + Custom widget, + Calculated metric, + Combined. The new widget goes to the end of the tab you are on.

To change one later, click Customise, then Edit (custom and combined widgets) or Edit formula (calculated metrics) under the widget.

Admins build and change them (agency team members count as admins in the agency's stores). Everyone on the store sees them. They are included in the Second Order plan, and they appear in PDF reports and CSV files like any other widget.

Custom widget

panel.secondorder.eu
The custom widget builder with the source, dimensions, metrics and a live preview
  1. Source: pick where the numbers come from.
  2. Split by: the first dimension, for example Date or Campaign. Nothing (one row of totals) gives a single row of totals.
  3. And by (optional): a second dimension, for example Device.
  4. Metrics: tick up to 8 ("2 of 8 chosen"). The list shows only the metrics that work with the dimensions you picked.
  5. Show as: Table, Line, Bars or Doughnut.
  6. Widget name (optional): without a name, the widget is named from its parts in the reader's language, for example "Sessions · Channel group × Device".
  7. Check the Preview on the right. It uses the period chosen at the top of the panel.
  8. Click Add to this tab.

Sources, dimensions and metrics

The list of sources shows only what your store has connected.

Source Dimensions Metrics
Your store Date, Country, Product Orders, Revenue, Average order value, New customers, Repeat orders, Revenue from returning customers, Items sold
GA4 Date, Channel group, Source, Medium, Source / medium, Campaign, Landing page, Page, Device, Country, City, New / returning, Product Sessions, Users, New users, Engaged sessions, Engagement rate, Average session duration, Page views, Add to carts, Checkouts, Purchases, Revenue; with Product: Product views, Products added to cart, Products purchased, Product revenue
Search Console Date, Search query, Page, Country, Device Clicks, Impressions, CTR, Average position
Meta Ads Date, Campaign, Ad set, Ad, Age, Gender, Country, Placement, Device, Ad account Spend, Impressions, Clicks, CTR, CPC, CPM, Purchases, Purchase value, ROAS, Cost per purchase, Conversion rate, Reach, Frequency
Google Ads Date, Campaign, Ad group, Search term, Device, Network, Ad account Spend, Impressions, Clicks, CTR, CPC, CPM, Conversions, Conversion value, ROAS, Cost per conversion, Conversion rate
Microsoft Ads Date, Campaign, Ad group, Device, Ad account as Google Ads
TikTok Ads Date, Campaign, Ad group, Ad, Ad account as Meta Ads, without Reach and Frequency
Pinterest Ads Date, Campaign, Ad group, Ad account as TikTok Ads
LinkedIn Ads Date, Campaign group, Campaign, Ad account as Google Ads
Criteo Date, Campaign, Ad group, Device, Ad account as TikTok Ads
ChatGPT Ads Date, Campaign, Ad group, Ad, Ad account as Google Ads

Ad platforms are listed when their accounts are connected to the panel with your own login (Settings → Integrations). Not offered: social networks, email tools and Google Business Profile. Their ready widgets are still in + Add widget.

If nothing is connected yet, the builder says so and offers Open Integrations.

What can be combined

The builder only offers combinations that work. The rules behind it:

  • Two dimensions at most. The second one can be chosen only after the first, and not the same one twice.
  • One level per ad platform. Meta Ads: Campaign, Ad set or Ad. Google Ads: Campaign, Ad group or Search term. The other ad platforms: one of their campaign levels. Each can be combined with the date, a device or the ad account.
  • One Meta breakdown at a time. Age, Gender, Country, Placement and Device are breakdowns: Campaign × Age works, Age × Gender does not.
  • Your store: Country and Product come from the daily store totals, so they can't be combined with each other or with new and returning customers. Country works with Orders, Revenue and Average order value. Product works with Revenue and Items sold. New customers, Repeat orders and Revenue from returning customers work by Date or as totals.
  • GA4: Product combines only with Date, and only with the product metrics (Product views, Products added to cart, Products purchased, Product revenue). Those product metrics need the Product dimension.

If a platform still refuses a combination, the widget says "… could not answer this combination. Try other dimensions or metrics."

Charts and tables

  • A chart needs at least one dimension. With Nothing, only Table is available.
  • The date is always on the horizontal axis.
  • A chart by category (no date) shows the 8 biggest values. A table shows them all.
  • With two dimensions, a chart shows the first metric only: one line or bar for each value of the other dimension (the 6 biggest).
  • Doughnut needs one dimension other than the date and one metric.
  • A table keeps up to 1,000 rows. A table that starts with the date runs in date order; the others start with the biggest value of the first metric.
  • Custom widgets show the chosen period only, without the comparison with the previous period.

Once added, a custom table has the usual table tools: sort, rows, columns, filter, total row and CSV (see Customise the panel). If you later change its source, dimensions or metrics, its filter, hidden columns, sort and total row are cleared.

Calculated metric

A calculated metric is a single number worked out from up to 5 inputs, named A to E.

  1. Name: for example "Meta + Google spend".
  2. Inputs: for each letter, search and choose a metric. It can be: - any number widget of any source (for example Store revenue, or GA4 Sessions); - a table: then choose which column to add up ("Total of Spend"), and if you want, one condition in only rows where… (optional), for example Campaign contains PL.

+ Add input adds a letter (up to E); Remove takes one away. 3. Formula (use A–E, + − × ÷ and brackets): for example A + B or (A - B) / B. You can type * and / too. The buttons under the field fill in common formulas. 4. Show as: Money, Number, Percent (0.25 shows as 25%), Ratio (3.2×) or Decimal (2 places). 5. Better when: Higher is better, Lower is better or Neither. This decides whether a change is shown in green or red. 6. Under the fields you see the result for the chosen period. Click Add to this tab.

How the inputs are read:

  • money counts in złoty (units of the panel's currency);
  • percentages count as fractions: 2% is 0.02. To show a share as a percent, choose Percent: 0.25 shows as 25%.

The change against the previous period is shown only when every input has a previous value. Table totals have none, so a calculated metric that uses a table column shows no change.

Examples:

What Inputs Formula Show as
Meta + Google spend A = Meta Ads spend, B = Google Ads spend A + B Money
Revenue per session A = Store revenue, B = GA4 Sessions A / B Money
Spend of the PL campaigns A = a Meta campaigns table, column Spend, only rows where the campaign contains PL A Money
Ad spend as a share of revenue A = Ad spend, B = Store revenue A / B Percent

Combined widget

  1. Name (required), for example "Spend by platform".
  2. Type: - Chart: series from several sources on one chart; - Table: numbers from several sources side by side.
  3. For a chart, for each series: search and choose a chart, then which of its lines to use, and optionally a Series name (optional). + Add series adds one, up to 6.
  4. For a table, for each row: choose a number widget and optionally a Row name (optional). + Add row adds one, up to 12.
  5. Click Add to this tab.

How it works:

  • A combined chart joins the series by date. When every chosen chart is by category (channels, devices…), it joins them by category instead. A chart over time and a chart by category can't be mixed: series that don't match the first one are left out.
  • To list a chart's lines, the panel reads it for the chosen period. If it has no data then ("No data in this period to list its series"), pick another period at the top and try again.
  • A combined table shows each number with its previous value and the change.

You can pick the ready widgets of your connected sources. Custom widgets and other calculated metrics can't be used as inputs.

Limits at a glance

Limit
Custom widget 2 dimensions, 8 metrics, 1,000 table rows; charts: 8 categories, 6 series
Calculated metric 5 inputs (A–E), one condition per table input
Combined widget 6 series (chart) or 12 rows (table)
Names up to 60 characters

Common questions

Why can't I find Instagram or Klaviyo in the custom widget sources?

Custom widgets ask the platform directly, which the panel does for your store, GA4, Search Console and ad accounts connected with your login. For social networks and email tools, use their ready widgets in + Add widget, or put them together in a combined widget.

Why does my calculated metric show no change against the previous period?

At least one input has no previous value. Table column totals never have one.

My combined chart is missing a series.

It was probably a chart by category mixed with charts over time, or it had no data in the period.

Can viewers build these widgets?

No. Viewers see them and can download them as CSV or PDF; admins build and change them.

Do the numbers match the platform's own screens?

Custom widgets read the platform for the chosen period and add nothing on top. Small differences can come from time zones (see Periods, comparison and refresh) and, for agency clients, from a markup on ad costs.

Still need help?

Write to contact@secondorder.eu, in English or Polish. Tell us your store and what you see; a screenshot helps.

← All help topics