How do i get shopify orders with sourceType = 'AD'

Saptarshi
Shopify Partner
15 0 2

Hi, I'm using Shopify's Graphql api to fetch orders and i'm looking for orders with customerJourney sourceType = 'AD' or 'REMARKETING' here's the query that i'm using:

 

 

{
      orders {
        edges {
          node {
            customerJourneySummary {
              firstVisit {
                source
                sourceType
              }
              lastVisit {
                source
                sourceType
              }
            }
          }
        }
      }
    }

 

 

Problem is that i'm getting sourceType = null for almost all cases 'FACEBOOK', 'INSTAGRAM', 'direct', etc. Is there something wrong with the way i'm querying it or is there any other way to do this?

Reply 1 (1)

ShopiAds-Dev
Shopify Partner
3 0 1

Hi Saptarshi, we are facing same issue, did you found any solution