Skip to main content

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.


Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.

Metrics you can use when querying FROM shop_campaign_insights.

Anchor to shop_campaign_ad_spend
shop_campaign_ad_spend

The total ad spend tied to orders associated with Shop Campaigns, in your store's currency.

Anchor to shop_campaign_average_customer_acquisition_cost
shop_campaign_average_customer_acquisition_cost

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

Anchor to shop_campaign_average_order_value
shop_campaign_average_order_value

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_customers
shop_campaign_customers

Number of customers that placed orders associated with Shop Campaigns

Anchor to shop_campaign_return_on_ad_spend
shop_campaign_return_on_ad_spend

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_sales
shop_campaign_sales

Sales revenue from orders associated with Shop Campaigns, after discounts and including taxes and shipping, in your store's currency. Refunds are excluded.


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 FROM shop_campaign_insights.

Use this to group Shop Campaign orders by the day they happened.

Anchor to day_of_week
day_of_week

Use this to group Shop Campaign orders by day of week, with values Monday through Sunday.

Use this to group Shop Campaign orders by the hour they happened.

Anchor to hour_of_day
hour_of_day

Use this to group Shop Campaign orders by hour of day, with values 0 through 23.

Anchor to month
month

Use this to group Shop Campaign orders by the month they happened.

Anchor to month_of_year
month_of_year

Use this to group Shop Campaign orders by month of year, with values 1 through 12.

Anchor to quarter
quarter

Use this to group Shop Campaign orders by the quarter they happened.

Anchor to shop_campaign_name
shop_campaign_name

Name of the Shop Campaign

Anchor to shop_campaign_target_name
shop_campaign_target_name

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_id
shop_id

The unique Shopify identifier for your store. Use shop_id with shop_name to show readable store labels.

Use this to group Shop Campaign orders by the week they happened.

Anchor to week_of_year
week_of_year

Use this to group Shop Campaign orders by week of year, with values 1 through 53.

Use this to group Shop Campaign orders by the year they happened.

Anchor to shop_name
shop_name

Name of your store



Was this page helpful?