Getting session details with the order api

GerdiGeni
New Member
3 0 0

Is there a way to get sessiondetails/conversiondetails with the Shopify api
its not in the order details / conversion details

 

        API_KEY = "xxxx"
        PASSWORD = "xxx"
        shop_url = "https://{}:{}@xxx.myshopify.com/admin/".format(API_KEY, PASSWORD)
        shopify.ShopifyResource.set_site(shop_url)

        orders = shopify.Order.find(status='closed') # open, closed, cancelled, any
        for order in orders:
            print(order.to_json())
            

 

Screenshot 2021-07-21 at 19.50.01.png Screenshot 2021-07-21 at 19.56.06.png

0 Likes
GerdiGeni
New Member
3 0 0

on the order data there is a field landing_site that will hold the referrals u send like  ?ref=xxx

0 Likes
csam
Shopify Staff
Shopify Staff
111 14 17

Hi @GerdiGeni 

Session and conversion data is not currently available via the API. The Orders API does contain a "referring_site" field, but there is no other analytics data exposed via the API.

 

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes