All things Shopify and commerce
Hi there,
I am creating an app where I will query the orders at a shopify website from my backend to detect the orders that were referred by my site.
I use utm parameters at the initial page that I direct users to and they are passed properly all the way to order completed. I can get the utm parameters at the customerJourney of an order.
The challenge is that I only want to get orders related to me as seeing all orders of a store would cause data breach. Is there a way to achieve that at GraphiQL filter? If not, what would be your guidance to achieve this in other ways?
Something like below but the query does not seem to filter properly:
{ orders( first: 100 query: "created_at:>='2024-02-21' AND customerJourney.moments.utmParameters.source:test_keyword" reverse: true ) { edges { node { name id createdAt channelInformation { id } currentTotalPriceSet { presentmentMoney { amount } } customer { id } customerJourneySummary { firstVisit { landingPage } lastVisit { landingPage } } customerJourney { moments { ... on CustomerVisit { utmParameters { source campaign content medium term } } } } } } } }
Thanks
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025