Elizabeth N. answered 03/18/19
Patient, Encouraging, Highly Experienced 5-star Spanish tutor
Both forms are correct; I have found that in Spain, it is more common to put the pronoun before the conjugated verb rather than to attach it to the infinitive. I'm not certain about specific Latin American countries, but I would say that in general, it is more common to attach the pronoun to the infinitive.