Also interested in using the API to pull session data. Shopify should allow customers to pull session data at the event level (ie home page visit, product view, add to cart, cart view, checkout) for all site visitors - not just customers who placed an order.
Is not clear how to do this via the Rest API or Shopify's GraphQL
Following up - confirmed you can use the rest API to export session data w/ granularity at the hourly level. You can also do a CSV export via Shopify admin by going to Analytics > Reports > Sessions Over Time. After reaching the report page, select a date range and group by hour. Select preferred columns (ie sessions, visitors, carts created, checkouts etc.) , then export as CSV.
While hourly exports are useful, still interested in getting data at the visitor id and session id level which helps to understand trends regarding re-engagement - not sure if this is possible?
Hello @howardma ,
Regarding your answer, how did you do to use REST API to retrieve session data ? I'm trying to do it but with no result...
Do you have a sample code or something that could be helpful ?
Thanks for your time !