Therefore, Joshua, before the verb because it's an indirect object, the same as if you were saying "she gives me some thing" its "ella me da algo" gustar takes the indrect object, as opposed to having "ir gusta mi" with mi as an object, because it's a verb that can not take a patient.