Ftm. Trying to give zantac

Tiffany
My daughter is 6 weeks old. Her doctor put her on zantac. She hates it. She spits most of it out. So today when she was hungry I put a little medicine in her mouth then the bottle and did that until the med was gone. Then of course she spit up. Any suggestions on how to get her to take this med?