Why would anyone take medication everyday for heartburn? If you get it no matter what you eat or have an ulcer I guess that's needed.
For me it's Pepcid AC as needed, more accurately the Costco equivalent is called Kirkland Acid Controller, same ingredients but cheaper. I pretty much never have acid reflux, heartburn or anything else anymore. Once in a great while I eat/drink something bad that I didn't prepare for, then feel crappy for an hour waiting for the meds to kick in. 99% of the time I know in advance when I'm going to be eating stuff that causes problems so I take a pill and hour in advance, no problem. I go 2 or 3 weeks without taking any Pepcid AC, then I go to Vegas and eat 2 a day for the whole trip and 2 days after I get home.
Maybe this is a non issue for me because your problems are more serious. It would suck to have to take meds everyday even when you're eating right. It helps me keep track of how often I behave badly, when I'm taking lots of Pepcid AC that means I'm eating and drinking badly, and probably gaining weight, or every pill has 50,000 calories.