- Get your company identifier! You can find it at your company profile page.
- Copy and paste a reference to our script into the '<head>' section of your website and initialize it with your company identifier.
- Call the desired function from anywhere on your page!
<!--Include the script-->
<script src="https://s3.amazonaws.com/prod-knock-integration/knock-integration-1.1.0.min.js"></script>
<!--Initialize the script-->
<script type="text/javascript">
knock.init('YOUR COMPANY IDENTIFIER HERE');
</script>
<button on-click="knock.open();">Open my company page!</button>
OR
<button on-click="knock.openScheduling();">Open Scheduling modal!</button>
OR
<button on-click="knock.openCommunity(yourCommunityId);">Open Community modal!</button>