Marketing Engagement
Marketing engagement represents customer activity taken on a marketing activity or a marketing channel.
Anchor to FieldsFields
- Anchor to adSpendad•Money
Spend V2 The total ad spend for the marketing content. Recurring weekly, monthly, or yearly spend needs to be divided into daily amounts.
- Anchor to channelHandlechannel•String
Handle The unique string identifier of the channel to which the engagement metrics are being provided. This should be set when and only when providing channel-level engagements. This should be nil when providing activity-level engagements. For the correct handle for your channel, contact your partner manager.
- Anchor to clicksCountclicks•Int
Count The total number of interactions, such as a button press or a screen touch, that occurred on the marketing content.
- Anchor to commentsCountcomments•Int
Count The total number of comments on the marketing content.
- Anchor to complaintsCountcomplaints•Int
Count The total number of complaints on the marketing content. For message-based platforms such as email or SMS, this represents the number of marketing emails or messages that were marked as spam. For social media platforms, this represents the number of dislikes or the number of times marketing content was reported.
- Anchor to failsCountfails•Int
Count The total number of fails for the marketing content. For message-based platforms such as email or SMS, this represents the number of bounced marketing emails or messages.
- Anchor to favoritesCountfavorites•Int
Count The total number of favorites, likes, saves, or bookmarks on the marketing content.
- Anchor to firstTimeCustomersfirst•Decimal
Time Customers The number of customers that have placed their first order. Doesn't include adjustments such as edits, exchanges, or returns.
- Anchor to impressionsCountimpressions•Int
Count The total number of times marketing content was displayed to users, whether or not an interaction occurred. For message-based platforms such as email or SMS, this represents the number of marketing emails or messages that were delivered.
- Anchor to isCumulativeis•Boolean!non-null
Cumulative Specifies how the provided metrics have been aggregated. Cumulative metrics are aggregated from the first day of reporting up to and including
. Non-cumulative metrics are aggregated over the single day indicated in
. Cumulative metrics will monotonically increase in time as each record includes the previous day's values, and so on. Non-cumulative is strongly preferred, and support for cumulative metrics may be deprecated in the future.
- Anchor to marketingActivitymarketing•Marketing
Activity Activity The marketing activity object related to this engagement. This corresponds to the marketingActivityId passed in on creation of the engagement.
- Anchor to occurredOnoccurred•Date!non-null
On The calendar date (in the time zone offset specified by the utcOffset field) for which the metrics are being reported. For example, a shop in UTC-5 would set utcOffset="-05:00" and aggregate all engagements from 05:00:00Z up to 29:00:00Z (5am UTC next day) for each call.
- Anchor to ordersorders•Decimal
The number of orders generated from the marketing content.
- Anchor to returningCustomersreturning•Decimal
Customers The number of returning customers that have placed an order. Doesn't include adjustments such as edits, exchanges, or returns.
- Anchor to salessales•Money
V2 The amount of sales generated from the marketing content.
- Anchor to sendsCountsends•Int
Count The total number of marketing emails or messages that were sent.
- Anchor to sessionsCountsessions•Int
Count The number of online store sessions generated from the marketing content.
- •Int
The total number of times marketing content was distributed or reposted to either one's own network of followers through a social media platform or other digital channels. For message-based platforms such as email or SMS, this represents the number of times marketing emails or messages were forwarded.
- Anchor to uniqueClicksCountunique•Int
Clicks Count The total number of unique clicks on the marketing content.
- Anchor to uniqueViewsCountunique•Int
Views Count The total number of all users who saw marketing content since it was published. For message-based platforms such as email or SMS, this represents the number of unique users that opened a marketing email or message. For video-based content, this represents the number of unique users that played video content.
- Anchor to unsubscribesCountunsubscribes•Int
Count The total number of unsubscribes on the marketing content. For social media platforms, this represents the number of unfollows.
- Anchor to utcOffsetutc•Utc
Offset Offset!non-null The UTC offset for the time zone in which the metrics are being reported, in the format
or
. Used in combination with occurredOn when aggregating daily metrics. Must match the account settings for the shop to minimize eventual discrepancies in reporting.
- Anchor to viewsCountviews•Int
Count The total number of views on the marketing content. For message-based platforms such as email or SMS, this represents the number of times marketing emails or messages were opened. For video-based content, this represents the number of times videos were played.
Anchor to MutationsMutations
- •mutation
Creates a new marketing engagement for a marketing activity or a marketing channel.
- Anchor to channelHandlechannel•String
Handle The unique string identifier of the channel to which the engagement metrics are being provided. This should be set when and only when providing channel-level engagements. This should be nil when providing activity-level engagements. For the correct handle for your channel, contact your partner manager.
- Anchor to marketingActivityIdmarketing•ID
Activity Id The identifier of the marketing activity for which the engagement metrics are being provided. This or the remoteId should be set when and only when providing activity-level engagements. This should be nil when providing channel-level engagements.
- Anchor to marketingEngagementmarketing•Marketing
Engagement Engagement Input!required The marketing engagement's attributes.
- Anchor to remoteIdremote•String
Id A custom unique identifier for the marketing activity, which can be used to manage the activity and send engagement metrics without having to store our marketing activity ID in your systems. This or the marketingActivityId should be set when and only when providing activity-level engagements. This should be nil when providing channel-level engagements.
Arguments
- Anchor to marketingEngagementmarketing•Marketing
Engagement Engagement The marketing engagement that was created. This represents customer activity taken on a marketing activity or a marketing channel.
- Anchor to userErrorsuser•[Marketing
Errors Activity User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields