Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Getting Traffic referrer source in Admin GraphQL API

Getting Traffic referrer source in Admin GraphQL API

TomCalmigo
Shopify Partner
21 0 3

Hi, 

I created custom report in analytics and I have this column called "Traffic referrer source" which indicates the referrer type domain that the user came from.

I contains multiple option (Direct, Search, Social..)

For example if the user came from Google then the "Traffic referrer source" column will have the value "Search" and if the user came From Facebook then it will have the value "Social"

I'm trying to get this info by GraphQL but I couldn't find it, this is part of the query I tried

{
  order(id: "gid://shopify/Order/xxxxxxxxxxxxxx") {
    customerJourneySummary {
      lastVisit {
        utmParameters {
          campaign
          content
          medium
          source
          term
        }
        referrerUrl
        source
        sourceType
      },
    }
  }
}

Does any one know how can I reach this information?

 

Thanks in advance,

Tom

 

 

 

Reply 1 (1)

piesod
Shopify Partner
4 0 1

@TomCalmigo Did you get an answer to your question some how? Im wondering the same thing.