I Need potty training tips

*Melissa* • Im married and have been married for 7 years, and we currently have two beautiful children together.
My son is 2 1/2 and we have been trying to potty train him since he turned 2 but it seems like nothing we do works. He will use the potty a few time during the first part of the day but once he gets later in the day he starts to refuse to use it. He will run away from me or start crying when I take him I even reward him with m&ms when he does use it. Does anyone have any tips on what helped you? I would definitely like to get him potty trained before the new baby comes I'm Aug.