There is a 2-step process to add Hark to your website:
How to add Hark snippet script
Paste the Hark script into the HTML box.
<!-- Start of Hark Script --> <script type="text/javascript"> var harkScript = document.createElement("script"); harkScript.src = "<https://storage.googleapis.com/prod_harks/sendhark_handler.js?randomstr=>" + Date.now(); document.body.appendChild(harkScript); harkScript.onload = function () { harkEmbedJs.init("Client ID here", "popup", "hark_button"); }; </script> <!-- Script End -->
b. “Hark_button” can be replaced with any ID you choose, it just has to match the ID of the button or div on the page where you want Hark to load.
You will need to choose a trigger at the bottom to make the tag fire. Click the pencil icon in the Triggering section.
Choose the trigger, All Pages - Page View.
Once you have chosen a trigger, click Save in the top right.