shop_ campaign_ insights
The shop_campaign_insights schema captures how your Shop Campaigns perform. It brings campaign sales, ad spend, and customer results together in one table, keyed by campaign.
Anchor to Use casesUse cases
- Sales vs. spend: Group
shop_campaign_salesandshop_campaign_ad_spendbyshop_campaign_nameto see which campaigns return more than they cost. - Efficiency: Show
shop_campaign_return_on_ad_spendwithshop_campaign_average_customer_acquisition_costto see which campaigns bring customers in profitably. - Customer trend: Trend
shop_campaign_customersby month to see how many customers campaigns bring in over time.
Anchor to MetricsMetrics
Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.
Metrics you can use when querying .
- Anchor to shop_campaign_ad_spendshop_
campaign_ ad_ spendshop_ campaign_ ad_ spend MONEYMONEY The total ad spend tied to orders associated with Shop Campaigns, in your store's currency.
- MONEYMONEY
Average customer acquisition cost is reported in your store's currency and is based on customers attributed to Shop Campaigns when their last paid click happened within seven days.
Average customer acquisition cost = shop campaign ad spend / shop campaign customers- MONEYMONEY
The average value of orders associated with Shop Campaigns, in your store's currency.
Shop Campaign average order value = shop campaign sales / shop campaign customers- Anchor to shop_campaign_customersshop_
campaign_ customersshop_ campaign_ customers INTEGERINTEGER Number of customers that placed orders associated with Shop Campaigns
- Anchor to shop_campaign_return_on_ad_spendshop_
campaign_ return_ on_ ad_ spendshop_ campaign_ return_ on_ ad_ spend MULTIPLIERMULTIPLIER A value of 3 means orders associated with Shop Campaigns produced three times the ad spend in sales.
Shop Campaign return on ad spend = shop campaign sales / shop campaign ad spend- Anchor to shop_campaign_salesshop_
campaign_ salesshop_ campaign_ sales MONEYMONEY Sales revenue from orders associated with Shop Campaigns, after discounts and including taxes and shipping, in your store's currency. Refunds are excluded.
MONEY
A monetary amount representing currency values such as prices, revenue, costs, and discounts.
INTEGER
A whole number without decimal places, used for counts, quantities, and other discrete numeric values.
MULTIPLIER
A numeric multiplier used to scale another value.
Anchor to DimensionsDimensions
Attributes of your data that let you look more granularly at aspects of the data. Group and filter by dimensions to shape the rows your query returns.
Dimensions you can use when querying .
- Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
Use this to group Shop Campaign orders by the day they happened.
- Anchor to day_of_weekday_
of_ weekday_ of_ week DAY_OF_WEEKDAY_OF_WEEK Use this to group Shop Campaign orders by day of week, with values Monday through Sunday.
- Anchor to hourhourhourHOUR_TIMESTAMPHOUR_TIMESTAMP
Use this to group Shop Campaign orders by the hour they happened.
- Anchor to hour_of_dayhour_
of_ dayhour_ of_ day HOUR_OF_DAYHOUR_OF_DAY Use this to group Shop Campaign orders by hour of day, with values 0 through 23.
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
Use this to group Shop Campaign orders by the month they happened.
- Anchor to month_of_yearmonth_
of_ yearmonth_ of_ year MONTH_OF_YEARMONTH_OF_YEAR Use this to group Shop Campaign orders by month of year, with values 1 through 12.
- Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
Use this to group Shop Campaign orders by the quarter they happened.
- Anchor to shop_campaign_nameshop_
campaign_ nameshop_ campaign_ name STRINGSTRING Name of the Shop Campaign
- Anchor to shop_campaign_target_nameshop_
campaign_ target_ nameshop_ campaign_ target_ name STRINGSTRING The customer segment targeted by the Shop Campaign. Values include New customers, All other customers, Lapsed - 3 months, and Lapsed - 12 months.
- Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
Use this to group Shop Campaign orders by the week they happened.
- Anchor to week_of_yearweek_
of_ yearweek_ of_ year WEEK_OF_YEARWEEK_OF_YEAR Use this to group Shop Campaign orders by week of year, with values 1 through 53.
- Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
Use this to group Shop Campaign orders by the year they happened.
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
DAY_TIMESTAMP
A date value truncated to day precision.
DAY_OF_WEEK
A day within a week, used for weekday-based grouping and filtering.
HOUR_TIMESTAMP
A timestamp truncated to hour precision.
HOUR_OF_DAY
An hour within a day, typically represented as an integer from 0 to 23.
MONTH_TIMESTAMP
A date value representing the start of a month.
MONTH_OF_YEAR
A month number within a year.
QUARTER_TIMESTAMP
A date value representing the start of a fiscal quarter.
STRING
A sequence of characters representing text data.
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
WEEK_TIMESTAMP
A date value representing the start of a week.
WEEK_OF_YEAR
A week number within a year.
YEAR_TIMESTAMP
A date value representing the start of a year.
shop_product_impressions: Switch to this to see which products got exposure from Shop channel impressions.