# Integrating ShareMint into your Website

ShareMint offers the ability to integrate referral tracking directly into your website.

We have a dedicated NPM package that makes it easy to integrate. You can also use our API directly to perform the same functionality.

The API and NPM package offer the following features:

* Save a user and who has referred them
* Store page visits for analytics purposes
* Fetch a referral code for a user (or create one if they don't yet have one)

Full notes on how to integrate ShareMint into your website can be found at: [https://www.npmjs.com/package/@sharemint/sdk.](https://www.npmjs.com/package/@sharemint/sdk)


---

# 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.sharemint.xyz/fundamentals/integrating-sharemint-into-your-website.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.
