Life-time value calculator
An online tool for calculating life-time value of a customer, and comparing it to cost-per-click expenses. Initially built for AdWords, with data from Consumer Barometer, but the algorithm is broadly usable.
Methodology is explained in the tool itself.
This is not an officially supported Google product.
NOTE: This tool was available at
between 2012 and 2019. It was open sourced in 2019 to let existing users
fork it and continue using it.
webdev serve for development. This will show the web app on
localhost:8080. If you don't have the
webdev tool, run
pub global activate webdev.
When you're ready to deploy, see build and deploy instructions below.
To build the frontend and put it onto the App Engine-based backend, run the following command:
webdev build -o web:app-engine-backend/static/
This compiles the Dart file(s) in
Testing the app in the App Engine localhost
The app should work exactly the same as it does in
webdev, but to stay safe,
go to the backend subdirectory (
cd app-engine-backend) and run
the local App Engine server (
For this and for testing the app locally, you need the Google Cloud SDK installed.
Then, just run
gcloud app deploy --project life-time-value (assuming you
have a Google App Engine project called