Skip to main content
This page is a reference spec for the SourceMedium Configuration Sheet: what columns exist on each tab, which fields are required, and how dates/ranges are interpreted during ingestion.
SourceMedium checks your Configuration Sheet every 15 minutes, and your store page shows what it read from each tab, including any cell it couldn’t read. Reports use your edits from their next refresh. See Check what SourceMedium read.

General rules

Layout

Each tab keeps the template’s layout: row 2 holds the column headers and your data starts on row 3. Columns are read by position, in the order listed below, so don’t insert, remove or reorder columns. Keep each tab’s name as the template has it (capitalization doesn’t matter).

Date formats

Every tab accepts dates in these formats:
  • YYYY-MM-DD
  • MM-DD-YYYY
  • MM/DD/YYYY
  • MM/DD/YY

Cells SourceMedium can’t read

A number column with text in it, a date in another format, or a formula that shows an error such as #REF! or #N/A holds back the whole tab: reports keep using the version they used before, and your store page names each cell to fix.

Date ranges

  • Where a tab supports a date range, date_end is treated as inclusive (the range includes both date_start and date_end).
  • For tabs that amortize/spread amounts, the spread is done evenly across the number of days in the inclusive range.

Targets tab

Use the Targets tab for KPI targets displayed in scorecards and executive reporting.
Targets are treated as daily values across the selected date range. If you want a monthly total target, enter the per-day target value.
If multiple Target rows overlap on the same day for the same channel:
  • Summable metrics (e.g., revenue, orders, spend, sessions) are summed
  • Ratio-like metrics (e.g., AOV, CPA, ROAS) use the max value for that day

Channel Mapping tab

Use Channel Mapping to route orders (and some marketing records) into consistent channels, subchannels, and vendors using rule-based matching.
Rules are evaluated from highest to lowest derived weight, and the comparison spans every channel:
  • When channel is blank or an Online DTC channel, the weight is row. A row of 0 disables the rule.
  • For any other channel, the weight is row * 1000. A row of 0 gives the lowest weight, and the rule stays active.
For example, row 2 with channel Wholesale (weight 2,000) is evaluated before row 500 with channel Online DTC, and after row 2,500 with channel Online DTC.
Only Online DTC, Amazon, Retail, Wholesale, and TikTok Shop count as valid channels. Orders in any other channel are not valid orders, so they are left out of standard reporting and LTV, but they stay in your order data.
Built-in rules run before Channel Mapping, so a rule with channel Excluded does not move an order that a built-in rule already placed, such as a POS order in Retail. The sm-exclude-order order tag is the only route that always applies. See Create custom channel mappings.

Supported attribute values

These attributes are supported by the channel mapping ingestion logic:
  • source (UTM source)
  • medium (UTM medium)
  • source_medium (combined UTM source/medium)
  • campaign (UTM campaign)
  • discount_codes (order discount codes)
  • order_tags (order tags)
  • skus (product SKUs)
  • shopify_sales_channel (Shopify sales channel / marketplace signal)

Sales tab

Use the Sales tab to enter non-integrated sales and have them included in reporting.
Orders are stored as whole numbers; when a Sales row spans multiple days, order counts are distributed across the range to stay integer-valued.

Cost tab (Marketing Costs)

Use the Cost tab (sometimes labeled Marketing Costs) for marketing spend that isn’t captured by an integration.

Financial Cost tabs

Financial Cost tabs define rates used for profit and cost reporting. These tabs require date_start and date_end, in any of the date formats above.
For Financial Cost tabs, rows without a date_end are ignored.

Financial Cost - Product COGS

Financial Cost - Shipping

Financial Cost - Fulfillment

Financial Cost - Merchant Processing Fees

Financial Cost - Operating Expenses


Configuration Sheet Overview

Start here for how-to guides and workflows.

How does channel mapping work?

Standard channel labels, Shopify Flow tagging, and how to customize the rules.