Return a javascript function to save data to Google datastore

save_googlecloud()

Value

A javascript function to write data to the Google datastore

Details

The purpose of the save_googlecloud() is to return a javascript function that, when called from within the jsPsych experiment, will write the data to the Google datastore. The intention is that when an experiment is to be deployed on Google App Engine (i.e., using the run_googlecloud() function to deploy the experiment), the save_googlecloud() function provides the mechanism for saving the data. If the goal is simply to save the data set at the end of the experiment, the easiest way to do this is when building the experiment using build_experiment(). Specifically, the method for doing this is to include the argument on_finish = save_googlecloud() as part of the call to build_experiment().

See also