I'm trying to "mark" orders from a checkout with a given parameter so I can know they are conversions from our app.
I'm rather confused with the documentation and some questions in the community.
On one hand, it looks like "ref" is the way to go. The shopify representative says so:
And yet, when I check the orders documentation I don't see such field (landing_site_ref)
The alternative I guess would be to pass a custom utm_parameter like "utm_repeat_order=true" but then we have to change our code to use the GraphQL endpoint instead of the REST API because utm_params of the checkout page of an order aren't available...
So... how can I "mark" or "attribute" a given order as coming from our service?
Did you mean this?
The URL for the page where the buyer landed when they entered the shop.
All orders are recorded with that info, so you can use that to tally up anything of interest.
Landing page would be null in the cases where it is hit without a reference. If you do tests, and hit the store with a reference, you'd see it populated. As for creating a checkout on a non-shopify page, you are speaking of storefrontAPI checkout I assume, so you can optimize that yourself.