> For the complete documentation index, see [llms.txt](https://docs.betterbugs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.betterbugs.io/developer-guide/betterbugs-web-sdk/installation/troubleshooting-issues.md).

# Troubleshooting issues

### 1 - I’m unable to load the BetterBugs SDK Widget

If you are using the CDN, make sure to place the script tag within your HTML head tag. For npm/yarn installations, please ensure that the package is installed without errors and the import statement is correct. Finally, ensure the accuracy of your API key (apiKey) in the newly created instance.

If you're still stuck, open the devtools console of your browser and check for any errors or exceptions. For instance, if there's an error with the record type parameter in the SDK, you should see an error message: \[@betterbugs/web-sdk] Invalid record type. Please check your record type. Also, refer to the docs for the correct methods/options to resolve such issues.

### 2. The customization options for the Web SDK are not applied correctly

If you are facing issues with the customization options, please double-check the initialization code. Please refer to the official documentation for all customization options and how to use them correctly. If you're still facing errors, drop us a message at <support@betterbugs.io> and we'll get back to you at the earliest.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.betterbugs.io/developer-guide/betterbugs-web-sdk/installation/troubleshooting-issues.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
