Discussing APIs and development related to customers, discounts, and order management.
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())
on the order data there is a field landing_site that will hold the referrals u send like ?ref=xxx
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.