Skip to content
master
Switch branches/tags
Code
This branch is up to date with master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 

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 https://life-time-value.appspot.com/ between 2012 and 2019. It was open sourced in 2019 to let existing users fork it and continue using it.

Development

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

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

About

An online tool for calculating life-time value of a customer

Resources

License

Releases

No releases published

Packages

No packages published