A single link won’t work for all abandoned carts. Each abandoned cart has it’s own unique link. Are you trying to send out emails to customers to recover the cart ? If yes, Shopify does provide a native feature: https://help.shopify.com/en/manual/promoting-marketing/create-marketing/abandoned-checkouts
You can follow this article to set it up.