PRIVATE WEBSITE COUNTER — INSTALL
=================================

WHAT THIS DOES
- Counts page visits on multiple separate websites.
- Shows totals per website, today, last 7 days, all time, and top pages.
- The numbers NEVER appear on your public websites.
- The dashboard is password protected.
- Visit counts stay on your own web server in data/visits.json.
- Shows approximate visitor city, state/region, and country.
- Does NOT save raw visitor IP addresses.

BEST LOCATION
Create a private subdomain such as:
  counter.jaylenecab.com

1) UPLOAD THE WHOLE FOLDER
Upload these files to the web root of the private counter site:
  admin.php
  setup.php
  track.php
  count.js
  data/.htaccess

Make sure the data folder is writable by PHP. On most cPanel hosting, 755 works. If setup cannot write files, use 775 for the data folder.

2) RUN SETUP ONCE
Open:
  https://counter.YOURDOMAIN.com/setup.php

Create your password and confirm the sites to track.
After setup, you may delete setup.php for extra security.

3) ADD THIS ONE LINE TO EVERY WEBSITE
Place it right before </body> on each site you want to count:

<script defer src="https://counter.YOURDOMAIN.com/count.js"></script>

Example:
<script defer src="https://counter.jaylenecab.com/count.js"></script>

You can put the same line on:
- jaylenecab.com
- dispatch.jaylenecab.com
- ride.jaylenecab.com
- talk.jaylenecab.com
- bridgeton.jaylenecab.com

The script automatically knows which website sent the visit.

4) VIEW YOUR PRIVATE COUNTER
Open:
  https://counter.YOURDOMAIN.com/admin.php

Only someone with your password can see the dashboard.

NOTES
- Visitor location is approximate and based on IP geolocation; VPNs and mobile networks can make it inaccurate.
- Raw IP addresses are not saved. A one-way hash is cached temporarily to avoid repeating geolocation lookups.
- Geolocation uses ipwho.is from your server.
- This counts page views and coarse locations, not exact GPS positions.
- It does not need cookies.
- It validates the sending website against your approved host list.
- The dashboard refreshes every 30 seconds.
- Daily history keeps the most recent 45 days.
