How to get session and conversions data like this from the analytics section

These stats are easily and readily available in the shopify admin but till yet there is no simple and easy way to fetch them. Does anyone have a cheeky workaround for htis or not? Maybe I use the url and fetch data somehow if possible? Like this:

https://admin.shopify.com/store/quickstart-7c3b7d0b/analytics/reports/sessions_over_time?ql=FROM+sessions%0ASHOW+online_store_visitors%2C%0A++sessions%0ATIMESERIES+day%0AWITH+TOTALS%2C+PERCENT_CHANGE%0ASINCE+startOfDay%28-7d%29+UNTIL+today%0ACOMPARE+TO+previous_period%0AORDER+BY+day+ASC%0ALIMIT+1000%0AVISUALIZE+sessions+TYPE+line

Hi @safwan

I’m not aware of a way to get this data directly from the API. Would using a service like Google Analytics for measuring page sessions be an option for you?

Okay what I did was used a cookie and time to expire for that to identify sessions. No need for google analytics used shopify web pixels for this

1 Like

Great to hear this approach works for you!