> For the complete documentation index, see [llms.txt](https://zakariaes-organization.gitbook.io/saascore-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zakariaes-organization.gitbook.io/saascore-docs/configuration/upstash-redis.md).

# Upstash Redis

## Setting Up Visitor Tracking with Upstash Redis

To track daily visitors, we have integrated Upstash Redis database into our app. Follow these steps to set it up:

1. **Create an Upstash Account and Database**
   * Go to [upstash.com](https://upstash.com)
   * Create a new account if you don't have one
   * Once logged in, create a new Redis database
2. **Retrieve Credentials** After creating your database, you'll need to retrieve two important credentials:
   * `UPSTASH_REDIS_REST_URL`
   * `UPSTASH_REDIS_REST_TOKEN`
3. **Configure Environment Variables**
   * In your project's root directory, create or edit the `.env` file
   * Add the following lines to the file:

     ```bash
     UPSTASH_REDIS_REST_URL=your_rest_url_here
     UPSTASH_REDIS_REST_TOKEN=your_rest_token_here
     ```
   * Replace `your_rest_url_here` and `your_rest_token_here` with the actual values from Upstash
4.
