SaasCore Docs
  • Get Started
  • Configuration
    • Database
    • Stripe
      • Product ID and Price ID
      • API keys
      • Stripe Webhook
    • Emails
      • Cron Jobs
    • Claudinary
    • Chat plugin
    • Upstash Redis
    • OAuth with Google and GitHub
    • Subscription types and plans
    • Affiliate program
    • Google Analytics Api
  • Landing page
    • Header
    • Hero
      • Discount
      • AvatarCircles
    • Other components
  • Authentication Flow
    • For Admins
    • For Clients
      • OAuth
      • Credentials
    • For Affiliates
  • Payments
    • Payment Flow Scenarios
      • Scenario 1: Registered Client
      • Scenario 2: Direct Subscription from Home Page
      • Upgrading/Downgrading/Canceling Subscriptions
    • Pricing Table
  • Component Protection
  • Pending ...
Powered by GitBook
On this page
  1. Configuration

Upstash Redis

PreviousChat pluginNextOAuth with Google and GitHub

Last updated 9 months ago

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

    • 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:

      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

upstash.com