Accessing Session Data via Latest Shopify GraphQL API

Accessing Session Data via Latest Shopify GraphQL API

NE4
Visitor
2 0 0

Hi,

 

I’m looking for a way to retrieve session data through the latest version of the Shopify GraphQL API. Specifically, I want to access metrics such as sessions, online_store_visitors, utm_source, utm_medium, and referrer_source.

 

Right now, I have to manually download and send reports, but I’d like to automate this process using the API instead. To give you an idea, here’s the ShopifyQL query I currently use in reports:

Screenshot 2025-02-11 at 7.55.28 p.m..png

 

 

Is there a way to achieve this via GraphQL? If not, what would be the recommended approach to programmatically access session-related data?

 

Thanks for your help!

 

Replies 0 (0)