marketing_ engagements
The marketing_engagements schema captures engagement metrics for your marketing activity as reported by each marketing channel or app, including ad spend, impressions, clicks, sends, orders, and sales. It's the channel's own view of performance, keyed by marketing event and API client, rather than Shopify's attributed results.
Anchor to Use casesUse cases
- Spend and return: Group
engagements_ad_spendandengagements_total_salesbymarketing_api_clientto see which channels cost the most and which report the most revenue back. - Engagement funnel: Compare
engagements_impressions,engagements_clicks, andengagements_unique_clicksfor a marketing event to see how reach narrows to engaged clicks. - Messaging health: Track
engagements_sendsagainstengagements_fails,engagements_complaints, andengagements_unsubscribesto monitor deliverability and list health for email and SMS channels. - New vs. returning: Show
engagements_ordersalongsideengagements_first_time_customersandengagements_returning_customersto see whether a channel reports winning new or repeat buyers.
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 engagements_ad_spendengagements_
ad_ spendengagements_ ad_ spend MONEYMONEY Amounts are in your store's currency.
- Anchor to engagements_clicksengagements_
clicksengagements_ clicks INTEGERINTEGER Number of clicks on marketing content, including multiple clicks from the same person, as reported by the marketing channel
- Anchor to engagements_complaintsengagements_
complaintsengagements_ complaints INTEGERINTEGER Number of emails marked as spam, as reported by the marketing channel
- Anchor to engagements_failsengagements_
failsengagements_ fails INTEGERINTEGER Number of failed message deliveries, as reported by the marketing channel
- Anchor to engagements_first_time_customersengagements_
first_ time_ customersengagements_ first_ time_ customers FLOATFLOAT Number of first-time customers from marketing campaigns, as reported by the marketing channel
- Anchor to engagements_impressionsengagements_
impressionsengagements_ impressions INTEGERINTEGER Number of times marketing content was displayed, as reported by the marketing channel
- Anchor to engagements_ordersengagements_
ordersengagements_ orders FLOATFLOAT Number of orders, as reported by the marketing channel
- Anchor to engagements_returning_customersengagements_
returning_ customersengagements_ returning_ customers FLOATFLOAT Number of returning customers from marketing campaigns, as reported by the marketing channel
- Anchor to engagements_sendsengagements_
sendsengagements_ sends INTEGERINTEGER Number of marketing messages you've sent, as reported by the marketing channel
- Anchor to engagements_total_salesengagements_
total_ salesengagements_ total_ sales MONEYMONEY Amounts are in your store's currency.
- Anchor to engagements_unique_clicksengagements_
unique_ clicksengagements_ unique_ clicks INTEGERINTEGER Number of unique people who clicked on marketing content, as reported by the marketing channel
- Anchor to engagements_unique_viewsengagements_
unique_ viewsengagements_ unique_ views INTEGERINTEGER Number of times a unique individual viewed the marketing content, as reported by the marketing channel
- Anchor to engagements_unsubscribesengagements_
unsubscribesengagements_ unsubscribes INTEGERINTEGER Number of unsubscriptions from marketing messages, as reported by the marketing channel
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.
FLOAT
A floating-point number used for measurements, rates, and other continuous numeric values.
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 marketing_api_clientmarketing_
api_ clientmarketing_ api_ client IDENTITYIDENTITY Unique identifier in Shopify for the API client
- Anchor to marketing_event_idmarketing_
event_ idmarketing_ event_ id IDENTITYIDENTITY Unique identifier in Shopify for the marketing event
- Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to channel_handlechannel_
handlechannel_ handle STRINGSTRING Name of the marketing channel or platform that drove the marketing engagement
- Anchor to created_atcreated_
atcreated_ at TIMESTAMPTIMESTAMP Date and time the marketing activity was created
- Anchor to ended_atended_
atended_ at TIMESTAMPTIMESTAMP Date and time the marketing activity ended
- Anchor to manage_urlmanage_
urlmanage_ url STRINGSTRING URL for managing the marketing activity in the external marketing platform
- Anchor to marketing_activity_channelmarketing_
activity_ channelmarketing_ activity_ channel STRINGSTRING The marketing channel category for the activity, such as social media, email, or search.
- Anchor to marketing_activity_idmarketing_
activity_ idmarketing_ activity_ id IDENTITYIDENTITY - Anchor to marketing_activity_statusmarketing_
activity_ statusmarketing_ activity_ status STRINGSTRING Current status of the marketing activity (such as Active or Paused)
- Anchor to marketing_activity_titlemarketing_
activity_ titlemarketing_ activity_ title STRINGSTRING Name of the marketing activity
- Anchor to marketing_automation_idmarketing_
automation_ idmarketing_ automation_ id IDENTITYIDENTITY Unique ID that Shopify uses to identify the marketing automation
- Anchor to marketing_budgetmarketing_
budgetmarketing_ budget MONEYMONEY The budget allocated to the marketing activity, in your store's currency.
- Anchor to marketing_budget_typemarketing_
budget_ typemarketing_ budget_ type STRINGSTRING The type of budget allocated to the marketing activity, such as daily, lifetime, or monthly.
- Anchor to marketing_delivery_channelmarketing_
delivery_ channelmarketing_ delivery_ channel STRINGSTRING Channel through which the marketing activity is delivered
- Anchor to marketing_platformmarketing_
platformmarketing_ platform STRINGSTRING The marketing platform that created the marketing activity, shown as a platform name.
- Anchor to preview_urlpreview_
urlpreview_ url STRINGSTRING URL for previewing the marketing activity
- Anchor to remote_idremote_
idremote_ id STRINGSTRING External identifier of the marketing activity on the marketing channel
- Anchor to scheduled_to_end_atscheduled_
to_ end_ atscheduled_ to_ end_ at TIMESTAMPTIMESTAMP Date and time the marketing activity is scheduled to end
- Anchor to started_atstarted_
atstarted_ at TIMESTAMPTIMESTAMP Date and time the marketing activity became active
- Anchor to utm_campaignutm_
campaignutm_ campaign STRINGSTRING The campaign name from the tracking parameter on the marketing link. Values are the campaign names you set in your links.
- Anchor to utm_contentutm_
contentutm_ content STRINGSTRING The tracking value used to tell different versions of the same ad or message apart. Values are the content labels you set in your links.
- Anchor to utm_mediumutm_
mediumutm_ medium STRINGSTRING The tracking value for the type of marketing channel. Values are terms such as email, social, and paid search.
- Anchor to utm_sourceutm_
sourceutm_ source STRINGSTRING The tracking value for where the traffic came from. Values are sources such as Google, Facebook, and newsletter.
- Anchor to utm_termutm_
termutm_ term STRINGSTRING The tracking value for paid search keywords. Values are the keyword terms you set in your links.
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
STRING
A sequence of characters representing text data.
TIMESTAMP
A full-precision timestamp including date and time.
campaign_sales: Shopify-attributed order revenue for your marketing, when you want attributed results rather than channel-reported numbers.campaign_sessions: On-store session and funnel behavior for campaign traffic, rather than channel-reported engagement.campaign_products: Product-level attribution for the same marketing activity when you want unit volume per product.