Getting session details with the order api

GerdiGeni
New Member
5 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

Replies 3 (3)
GerdiGeni
New Member
5 0 0

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

csam
Shopify Staff (Retired)
267 40 51

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.

 

 

To learn more visit the Shopify Help Center or the Community Blog.