marketing.graphql 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Represents actions that market a merchant's store or products.
  2. type MarketingEvent implements LegacyInteroperability&Node {
  3. # The app that the marketing event is attributed to.
  4. app: App!
  5. # The marketing channel used by the marketing event.
  6. channel: MarketingChannel
  7. # A human-readable description of the marketing event.
  8. description: String
  9. # The date and time when the marketing event ended.
  10. endedAt: DateTime
  11. # A globally-unique identifier.
  12. id: ID!
  13. # The ID of the corresponding resource in the REST Admin API.
  14. legacyResourceId: UnsignedInt64!
  15. # The URL where the marketing event can be managed.
  16. manageUrl: URL
  17. # The URL where the marketing event can be previewed.
  18. previewUrl: URL
  19. # An optional ID that helps Shopify validate engagement data.
  20. remoteId: String
  21. # The date and time when the marketing event is scheduled to end.
  22. scheduledToEndAt: DateTime
  23. # Where the MarketingEvent occurred and what kind of content was used.
  24. # Because utmSource and utmMedium are often used interchangeably, this is
  25. # based on a combination of marketingChannel, referringDomain, and type to
  26. # provide a consistent representation for any given piece of marketing
  27. # regardless of the app that created it.
  28. sourceAndMedium: String!
  29. # The date and time when the marketing event started.
  30. startedAt: DateTime!
  31. # The marketing event type.
  32. type: MarketingTactic!
  33. # The name of the marketing campaign.
  34. utmCampaign: String
  35. # The medium that the marketing campaign is using. Example values: cpc, banner.
  36. utmMedium: String
  37. # The referrer of the marketing event. Example values: google, newsletter.
  38. utmSource: String
  39. }
  40. # Represents a set of UTM parameters.
  41. type UTMParameters {
  42. # The name of a marketing campaign.
  43. campaign: String
  44. # Identifies specific content in a marketing campaign.
  45. # Used to differentiate between similar content or links in a marketing campaign to determine which is the most effective.
  46. content: String
  47. # The medium of a marketing campaign, such as a banner or email newsletter.
  48. medium: String
  49. # The source of traffic to the merchant's store, such as Google or an email newsletter.
  50. source: String
  51. # Paid search terms used by a marketing campaign.
  52. term: String
  53. }