How does marketing use consumer behavior to meet its end goal? By using consumer behavior you take in customers psychological influence, social influence, economic influence and stimulus influence. This means you'll have everything you need to make a successful sale because you'll be able to read the person your selling too.
The best way to do sales is through the 4p's. Product, Price, Promotion and place. So it's what your selling, what your selling it for, how your selling and where your selling. To have a successful sale you should meet all of the 4p's. If you have a good product and a good price but have a terrible advertisement and are in the wrong place you can get little to no sales.