Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml
<script>
  // Setup the global array if it doesn't already exist
  window._uca = window._uca || [];

  // Push an event into the global array
  window._uca.push({
    "name": "leadshook answer",
    "params": {
      "question": "How much weight are you looking to lose?",
      "answer": '{how_much_weight}'
    }
  });
</script>

If you fire an event with the name of “discard” then the entire session recording will be disposed of.