Marketing attribution is complex due to multiple variables that influence sales over various time periods through direct and indirect relationships. New analytical techniques can help determine the contributions, effects, and returns of different marketing investments and combinations over the short, medium and long term. These include vector auto regression, dynamic linear models, and nonlinear programming. Accurately measuring attribution allows for optimizing media spending and understanding price elasticity and copy testing results.