Skip to content

lacrypta/redirect

Repository files navigation

Setup in a couple of minutes a link tracking system with Google Analytics.

Features

  • Vite
  • Custom Title
  • Analytics
  • Netlify Button
  • Vercel Button
  • Subdomains
  • Loading animation

Fast Easy Way (No updates)

  • Create a Google Analytics account
  • Setup on Netlify or Vercel (Auto deploy button below)
  • Set the proper environment variables
  • Edit subdomains file in your repo (Optional)

Auto Deploy on Netlify or Vercel

Deploy on Netlify

or

Deploy with Vercel

Best Way (Fork)


Environment variables

VITE_TITLE="La Crypta - Redirecting..."
VITE_DESTINATION="http://lacrypta.com.ar"
VITE_GOOGLE_ANALYTICS="G-0000000000"

Deploy it and assign a subdomain.

Config Subdomains (optional)

Edit local src/config/subdomains.json Those links are being redirected by this tool.

Demo: https://twitter.lacrypta.com.ar

{
  "twitter": "https://twitter.com/LaCryptaOficial",
  "instagram": "https://www.instagram.com/lacryptaok/",
  "discord": "https://discord.com/invite/SN8JNhMgvY",
  "github": "https://github.com/lacrypta"
}

Then add those subdomains on your Netlify or Vercel Dashboard.

If the subdomain is not found in the config it automatically fallback to the url provided in VITE_DESTINATION.