Some people rip off the corner of the packet with their teeth. Others, while driving, squirt the ketchup directly into their mouth, then add fries. Some forgo fries at the drive-through all together to keep from creating a mess in the car.

After observing these and other "compensating behaviors," H. J. Heinz Co. says it spent three years developing a better ketchup packet.

Heinz...