Marketing question - how can I give discount to only NEW customers?

Hi I have an ecommerce store, and want to offer a promotion where customers can share discount of $10 off etc with friends and family that would be NEW customers , but is there a way to do that with the current "discount’ functionality OR an app that someone knows about?

I believe that this will answer your question, however, I am not a pro so take it with a grain of salt.

click “Discounts”>Discount Code (make code)> scroll to “Specific customer segments” Click “Browse”> Select “customers that have not purchased yet”> “limit to one use per customer” > Save discount.

I THINK this will work, in theory at least.

That sounds great but we don’t have a storefront. Only online.