How can I make the Checkout page add data to the Order?

diegoeche
New Member
2 0 0

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:

https://community.shopify.com/c/Shopify-APIs-SDKs/How-to-track-the-referral-of-the-order/td-p/587171

And yet, when I check the orders documentation I don't see such field (landing_site_ref)
https://shopify.dev/docs/admin-api/rest/reference/orders/order

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...

https://community.shopify.com/c/Shopify-APIs-SDKs/Access-to-UTM-campaign-fields-via-API/td-p/543076

So... how can I "mark" or "attribute" a given order as coming from our service?

0 Likes
HunkyBill
Shopify Expert
4481 45 485

Did you mean this?

landing_site
read-only
"landing_site": "http://www.example.com?source=abc"

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.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes
diegoeche
New Member
2 0 0

Thank you HunkyBill.

landing_site is many times null, and seems to be populated with the shop url. We are creating a checkout in a non-shopify page. So no, that doesn't do the trick.

0 Likes
HunkyBill
Shopify Expert
4481 45 485

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.

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes