Shopify now supports personalized affiliate links via the Collabs app for custom storefronts built on Hydrogen. To use this feature, your custom storefront must send Shopify analytics, handle URL redirects, manage the /discount route, and allow domain changes for affiliate links.
→ Read the full update on changelog.shopify.com