Skip to content
An online tool for calculating life-time value of a customer
Dart HTML CSS Python
Branch: master
Clone or download
Pull request Compare This branch is even with googlearchive:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
app-engine-backend Add license header to index.yaml Jul 31, 2019
lib Include LICENSE and headers Jul 30, 2019
test Include LICENSE and headers Jul 30, 2019
.gitignore Upgrade to Dart 2+ Jul 29, 2019 Include Jul 30, 2019
LICENSE Include LICENSE and headers Jul 30, 2019 Make correction to starting year Aug 8, 2019
analysis_options.yaml Include LICENSE and headers Jul 30, 2019
pubspec.yaml Include LICENSE and headers Jul 30, 2019

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.


The tool is written in pure Dart (not AngularDart nor Flutter) and compiled to JavaScript. The following instructions assume you have installed Dart and put it in path.

Local server

Use 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.

Build instructions

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 web/ into JavaScript.

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 ( .).

Deploy instructions

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 life-time-value).

You can’t perform that action at this time.