How can I track orders from specific private collections?

Benii73
Shopify Partner
11 0 4

Hello,
I have set up collections that I make private via passwords.
The products in these collections are present in several collections.
How can I retrieve the order information from which collection the order was made?
Is this possible? A workflow?
Thank you in advance for your help.

Replies 5 (5)

Benii73
Shopify Partner
11 0 4

Thanks @Adamcarlly  @Mereka , but I'm looking to learn.

I searched the workflow with the datas available during an order. For the products of an order, we don't have access to the referent collection.
Checking whether the product purchased is in a "private" collection is not the solution, because it doesn't mean that the purchase was made from one of these private collections. But which one?

Can you point me in the right direction here? This may be useful to other members of the community.

paul_n
Shopify Staff
1072 137 255

Browsing history is not fully accessible via the API. Usually this type of information is found on the order / customerJourneySummary object, but I believe that it depends on what tracking you've set up in your store. If you can see on the order page which collection a product came from, then you might have enough tracking set up and could access it that way. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Benii73
Shopify Partner
11 0 4

Hello @paul_n  and thank you very much for your reply.
This is a store in development, so everything can still be configured.
Can you tell me how to set up the necessary follow-up to retrieve the right information?
Thanks in advance.

paul_n
Shopify Staff
1072 137 255

Sorry, I'm not an expert is how to set that up. You might away to ask over in another forum topic how you can set that up. Then come back here if you have Flow specific questions.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Kalen_Jordan
Shopify Partner
458 16 68

Hopefully appropriate to post here, but I built out something similar to this recently to pull in data from the customer journey - in this case UTM codes:

https://www.getmesa.com/blog/how-to-auto-tag-shopify-utm-parameters/

 

I had been planning to do another workflow demo for exactly what you're describing - and would be happy to do that for you if you're interested.

 

You should be able to do this in flow though as well - you'd want to trigger on order created and then you should be able to grab that same graphql from my blog post.