Skip to main content
This reference spec shows what columns exist on each tab of the SourceMedium Configuration Sheet, which fields are required, and how SourceMedium interprets dates and ranges 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. SourceMedium reads columns 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. Your store page names each cell to fix.

Date ranges

  • Where a tab supports a date range, SourceMedium treats date_end as inclusive. The range includes both date_start and date_end.
  • Tabs that amortize/spread amounts spread them 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.
SourceMedium treats targets 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 into consistent channels and subchannels using rule-based matching.
SourceMedium evaluates rules from highest to lowest derived weight. 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 standard reporting and LTV leave them out. They stay in your order data.
Built-in rules run before Channel Mapping. A rule with channel Excluded therefore 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

Channel Mapping supports these attributes:
  • 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.
SourceMedium stores orders as whole numbers. When a Sales row spans multiple days, SourceMedium distributes order counts 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 Product COGS, Shipping, Fulfillment, and Merchant Processing Fees, SourceMedium matches channel to each order’s default channel. That is the order’s channel before Channel Mapping rules run, so an order your rules move to another channel still gets the costs set for its default channel.
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.