# Javascript SDK / HTML Script Guide

## Steps

To implement the Javascript SDK/HTML Script, please use the following steps

1. [**Install**](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/install) **the library or script:** Using the NPM library or HTML script tag, you can initialize the SDK.
2. [**Setup**](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/setup-a-reverse-proxy) **a reverse proxy (optional):** We recommend setting up a reverse proxy so that events are less likely to be intercepted by tracking blockers. Works only with `npm` library implementation&#x20;
3. **Collect Events:** Start collecting [Wallet Connect](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/wallet-connects), [Page View](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/page-views), And [Custom](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/custom-events) events
4. [**Verify**](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/verify-that-events-are-sent-correctly) **that events are sent correctly**

You can also check the [examples](https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide/react-next.js-and-html-examples) section on how to implement with common frameworks like React and Next.js


---

# Agent Instructions: 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:

```
GET https://docs.spindl.xyz/spindl/techncial/javascript-sdk-html-script-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
