1. Get your company identifier! You can find it at your company profile page.
  2. Copy and paste a reference to our script into the '<head>' section of your website and initialize it with your company identifier.
  3. <!--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>
                    
  4. Call the desired function from anywhere on your page!
  5. <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>
                    

That's it, you're done!

Back to index