Show survey on demand

To trigger Website Embed after certain user actions, e.g. to show the survey based on particular requirements, you should do these two things:

  1. Start 'embed hidden' by setting Zenloop.isVisible = false;
  2. Call 'show overlay' method Zenloop.showOverlay();

Full example with a button:

<script id="zl-website-overlay-loader" async src="<survey_hash_id>"></script>
  var Zenloop = window.Zenloop || {};
  Zenloop.isVisible = false;

<button onclick="Zenloop.showOverlay()">Show embed</button>