code: function BranchEvent() {
    // event name
    var event = document.getElementById("custom-action").value;
  
    // optional
    var metadata = {
      custom_dictionary: 123,
      anything: "everything"
    };
  
    Branch.userCompletedAction(event, metadata)
      .then(function success(res) {
        logger(res);
      })
      .catch(function error(err) {
        logger(err, true);
      });
  }
docs: DEPRECATED