Yes, potassium sorbate can be used a preservative! You will want to add it in the final step of your shampoo making and the measurement would be 3g per 1 litre of shampoo.