Custom Metrics Table

blended_stats_tvf

The Custom Metrics table stores the metrics a shop created. One row per shop per day, or per hour for hourly data.

📋

Table Guide

What You Can Answer With This Table

  • What values did the custom metrics my shop created return? — use event_date

Before You Query

  • Required field: event_date
  • Custom metric column ids start with custom_metric_.
  • The include_amazon parameter accepts true or false and defaults to false.

When to Use a Different Table

  • Use Summary Metrics table when you need Triple Whale Summary metrics such as Net Profit, MER, or Blended ROAS. The Custom Metrics table is for metrics a shop created.

View the full Triple Whale Data Ontology →


Parameters

Parameters can be used to customize and filter the data in the table, and are applied before aggregation.

TitleIDDescription
Include Amazoninclude_amazon

Includes Amazon Sales data in the results, in addition to the main sales platform.

Possible values: true, false

Defaults to false.

Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Hourevent_hourstring

The hour of the day on which the order was placed, according to a 24-hour clock. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).

Example values: 07, 16, 21

Event Dateevent_datedateThe date the order was placed. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).
Event Dayevent_date_daydateThe day on which the ad was run or the order was placed. Derived from event_date.
Event Weekevent_date_weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date_monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date_quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date_yeardateThe year during which the event occurred. Derived from event_date.
Shop IDshop_idstring

The unique ID of the shop (often corresponds to the shop domain). Can be used to group or filter data by shop in multi-store reports.

Example values: example-US.myshopify.com, example-EU.myshopify.com

Shop Nameshop_namestring

The name of the shop. Can be used to group or filter data by shop in multi-store reports.

Example values: example-US, example-EU

Custom metrics

Column ids for metrics a shop created start with custom_metric_.


Did this page help you?