Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic QR Link Generator + Analytics Dashboard

An Ultra lightweight, PHP-based dynamic URL generator with built-in QR code analytics.

Why?

Most free tools were either too slow, limited in functionality, or relied on 301 redirection. This was built to solve that — by hosting the redirector on the same domain/server the QR code points to. This reduces response time significantly because DNS discovery has already occurred. The result is an instant redirect from Page B (Dynamic QR Link) to Page A (your target content), with full analytics.

Uses JSON and JSONL for almost no server overhead — ideal for self-hosted setups.


🚀 Features

  • Create dynamic links for QR codes

  • Instant redirects with tracking

  • Lightweight stack: PHP + JSON

  • Analytics dashboard with:

    • Timestamp, location, IP, browser, OS, language
    • Clicks per day (chart)
    • Browser and OS usage (pie charts)
    • Interactive world map via Leaflet.js

🛠️ Setup

Clone this repository to your server


📊 Analytics

  • Logs are saved in logs.jsonl

  • dash.php shows:

    • Click history (by timestamp)
    • IP address, coordinates, city, and country
    • Visitor language, referer
    • Device info: OS and browser
    • Interactive world map (Leaflet)

🔐 Dashboard Protection (Optional)

To restrict access to dash.php or the whole path using HTTP Basic Authentication:

Step 1: Create .htpasswd

sudo htpasswd -c /etc/nginx/.htpasswd yourusername

Use -c only when creating the file for the first time. Omit it to add more users later.

Step 2: Edit your Nginx site config

location / {
    auth_basic "Restricted Area";
    auth_basic_user_file /etc/nginx/.htpasswd;
}

Step 3: Reload Nginx

sudo nginx -t   # Check for config errors
sudo systemctl reload nginx

About

Simple Dynamic QR Link Generator and Trackering Dashboard

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages