Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I'm new to shopify.
I need a way to map a particular order to user's session. I.e what is the session ID in which that particular orders is placed.
Checking the REST API response of orders, there is no particular mapping like this.
There is a field called `session_hash` but it is mostly NULL value (even if it is not NULL how to decipher hash)
Is there any way to find this
Basically I'm calculating an analytics : (sessions in which an order(s) is placed) vs total unique sessions
-----------
Link to order Rest API : Order (shopify.dev)
For Session ID I'm fetching it via & saving it into my backend:
ShopifyAnalytics.lib.user().traits().uniqToken
Hi @ajs540,
I think the order info does not have any fields related to user's session ID. But, we can put additional info into order note attributes by putting info into cart attributes using Ajax Cart API
-> Make a request on Storefront
-> Check cart data by storefront-domain/cart.js
-> Proceed Checkout and check order data
That what I can think about. Hope you can find out solution soon.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024