The present invention relates to a method for preparing haptens of formulae I and II that are useful in the preparation of immunogens, antibodies and conjugates, for use in competitive immunoassays for the detection of ractopamine, isoxsuprine and ritodrine. The haptens are prepared by reacting a phenylethanolamine derivative of formula D with a phenylalkylcarbonyl derivative of formula E: