How to create customer groups in Shopify store and set a percentage discount for it?

Unfortunately, Shopify’s default functionality does not yet offer customer group-based automatic discounts but allows you to create customer groups (segments) and group (segments) based discount codes.
You must consider that the discount does not automatically apply to the customer. To receive the discount, the customer must manually enter the discount code at the checkout.
How to create a customer groups in Shopify store?
In the following video guide, I will create a demo group (segments) for customers with an active account, i.e., customers who have registered for an account in the store.
How do I create a discount code for a new customer group?
In the following guide videos, I will create a discount code example that gives the logged-in customer a 5% discount on all products.
Important to remember!
Remember, the discount does not apply automatically when the customer logs in to their account. The customer must enter the given discount code when making a purchase.
Extra feature!
Shopify offers one small additional option for applying all discount codes (not limited to discount codes based on customer groups only).
From the discount code administration view, you can copy the shareable link. Suppose the customer enters your e-shop through an email, newsletter, advertisement, etc., and his purchase complies with the rules of the created discount code. In that case, the customer will automatically apply the discount code when purchasing.
See the video guide for details on how to copy this link.