window.onPMPCompletion(preference).
<script>
window.onPMPCompletion = function (preference) {
// preference is 'standard', 'personalized' or 'non-marketing'
// The alternative button stores 'non-marketing'.
console.log('PMP choice:', preference);
};
</script>