What's your biggest current challenge? Have your say in Community Polls along the right column.

Getting Sales Attributed to Marketing Reports via API/ShopifyQL

Getting Sales Attributed to Marketing Reports via API/ShopifyQL

tanisha03
Shopify Partner
3 0 0

How to fetch sales attributes to marketing using API or ShopifyQL?
My use case is to fetch sales attributes to marketing/marketing campaigns. Cannot figure out a way to extract this information using API/ShopifyQL.

Replies 2 (2)

Kyle_liu
Shopify Partner
295 39 54

Hi @tanisha03 

 

Can the API below meet your requirements?

MarketingActivities 

 

{
  marketingActivities (first: 10) {
    edges{
        node{
            id
            activityListUrl
            marketingChannelType
        }
    }
  }
}
If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
tanisha03
Shopify Partner
3 0 0

@Kyle_liu this will give me custom marketing campaigns created on the shop. I would like to retreive the custom reports created by shopify to fetch all sessions/sales by marketing campaigns created outside (say fb/insta)