Wix
Wix has a detailed guide to integrating third-party code into your website, located here. To get started, you'll need the below code snippet, making sure to replace INSERT_API_KEY_HERE with your own API Key, found in the Cohere dashboard under Settings.
1
<script>!function(){var e=window.Cohere=window.Cohere||[];if(e.invoked)console.error("Tried to load Cohere twice");else{e.invoked=!0,e.snippet="0.2",e.methods=["init","identify","stop","showCode","getSessionUrl","makeCall","addCallStatusListener","removeCallStatusListener","widget","addSessionUrlListener","removeSessionUrlListener",],e.methods.forEach(function(o){e[o]=function(){var t=Array.prototype.slice.call(arguments);t.unshift(o),e.push(t)}});var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src="https://static.cohere.so/main.js",o.crossOrigin="anonymous";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(o,t)}}();</script>
2
<script>window.Cohere.init("INSERT_API_KEY_HERE");</script>
Copied!
Select the following options, when Wix asks where to deploy the code:
  • Under Add Code to Pages, select All Pages.
  • When asked where to place your code, choose Head.
And that's it! Once you publish, every person who visits your site will appear on the Cohere dashboard.
Last modified 3mo ago
Copy link