To plant your aloe vera successfully you will need to make sure you place it somewhere that it will receive plenty of bright indirect sunlight. Direct sunlight will most likely dry out your plant too much and this will cause your aloe leaves to turn yellow. It is recommended that when planting your succulent to use a container/pot made out of terra-cotta or something similar with a porous material. This will ensure that your soil dries properly between waterings and also keeps your plant heavy which will prevent your plant from tipping over.
Be sure that you use a well-drained potting mix and do not use gardening mix. You can also dust the stem of your plant with a rooting hormone powder. This will encourage your aloe to put out new roots. Fertilize your aloe once a month during Spring and Summer. You should water your succulent deeply but also infrequently, your soil should feel moist after watering but always give it enough time to dry out before watering again. You can water your aloe 2-3 times a week in spring and summer and even less than that during fall and winter. This succulent is, unfortunately, susceptible to plant pests like scale and mealybugs.