Customer lifecycle framework for ecommerce marketing