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.

River Sloane
Updated by River Sloane

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 > Javascript 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?

What is an account slug?

Help! My app's not loading 😭

Get in touch

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply.