Marketing was long thought of as an art form. Now that the digital era is here to stay, marketing professionals are struggling to meet new kinds of goals.