Companies are diverting much of their marketing budget away from traditional methods and focusing more toward retail’s final frontier: the digital space.