coview

How to add the coview snippet

Adding coview to your page is very simple and usually takes only a few minutes.
After creating your account a default project already has been created for you.

Go to the project page

Make sure that the URL points to your web application.

Next you need to copy the snippet code and add it to your web page.

You can also you copy it from the code below but make sure to replace projectKey with your key

<script>
  (function(c,o,v,i,e,w){c[v]=c[v]||function(){(c[v].a=c[v].a||[]).push(arguments)};var s=o.createElement(i);s.src=e;s.async=1;var h=o.getElementsByTagName(i)[0];h.parentNode.insertBefore(s,h);c.addEventListener('error',function(err){c[v]('error',err)});c.addEventListener('message',function(msg){c[v]('message',msg)})})(window,document,'coview','script','https://cdn.coview.com/coview.js')

  coview('start', {
  projectKey:'YOUR_PROJECT_KEY',
  publicPage:true
});
</script>

Good practice

Because the snippet starts to collect all errors from the beginning it is better for your app to add the script tag to the top of the head.

This will not slow down your page since the snippet is loaded asynchronously.