I've added a script but it isn't working

That's no good! There's a ton of reasons why a script might not load, but here are some troubleshooting tips.

Are you adding Script tags?

If you're adding scripts into Settings > Code > Scripts, you'll need to enclose each snippet in script tags. Here's an example:

<script>
              console.log('Hey!');
          </script>
          

Try loading the Script elsewhere

We load scripts in the head of your knowledge base, but it might not always be the best place for it. Try loading it in the body of the page by adding the following code:

<script>
              (function() {
                  $(function() {
                      var s = document.createElement("script");
                      s.type = "text/javascript";
                      s.src = "ENTER YOUR SCRIPT URL HERE";
                      $("body").append(s);
                  });
              })();
          </script>
          

What did you think of this doc?