Create your own live Santa Sleigh tracker for your Round Table or community group.
This guide uses Firebase Realtime Database, the GPS Logger app and
GitHub Pages, so families can watch Santa move live across your town.
santa-sleigh-tracker-yourtown.Your database URL will look like:
https://YOUR-PROJECT-ID-default-rtdb.europe-west1.firebasedatabase.app/
Youβll use this base URL in the tracker HTML and in the GPS Logger app.
In the Realtime Database data view:
/, click the + button.location.location, create a child called current.current, create a child with a secret key name β any random string, e.g. abc123xyz789.
location
βββ current
βββ YOUR_SECRET_KEY
βββ lat: 66.5436
βββ lng: 25.8473
βββ ts: "2025-11-01T00:00:00Z"
β
The tracker HTML reads location/current.json and then takes the first child (your secret key).
So this exact structure is required.
Open the Rules tab and replace everything with:
{
"rules": {
".read": true,
"location": {
"current": {
".write": false,
"$secret": {
".write": "$secret === 'YOUR_SECRET_KEY'"
}
}
}
}
}
Now click Publish.
π This means:
β’ Anyone can read the sleighβs location (needed for the public map).
β’ Only a client writing to /location/current/YOUR_SECRET_KEY can update it.
β’ All other write paths under location/current are blocked.
Install GPS Logger on the device that will be on the sleigh.
In the URL field, enter:
https://YOUR-PROJECT-ID-default-rtdb.europe-west1.firebasedatabase.app/location/current/YOUR_SECRET_KEY.json
Example:
https://santa-sleigh-tracker-4dccd-default-rtdb.europe-west1.firebasedatabase.app/location/current/abcdefg12345.json
β
Use the same YOUR_SECRET_KEY you created in step 3.
β
Do not quote it.
β Donβt send to /location/current.json β that would break permissions.
PUTContent-Type: application/jsonJSON body:
{
"lat": %LAT,
"lng": %LON,
"ts": "%TIME"
}
GPS Logger substitutes:
β’ %LAT β latitude
β’ %LON β longitude
β’ %TIME β timestamp in ISO format
Once you hit Start Logging, you should see live updates under:
location β current β YOUR_SECRET_KEY in Firebase.
The lat, lng and ts values will keep changing.
SantaSleighTracker.santa_sleigh_tracker_final.html.Now open one of Benβs templates and copy the entire file:
_final_X version)
Paste the HTML into your new GitHub file.
βοΈ Only change one line in that file: the firebaseURL (or similar) variable.
Set it to your own Firebase base URL, for example:
const firebaseURL = "https://YOUR-PROJECT-ID-default-rtdb.europe-west1.firebasedatabase.app";
π Do not put your YOUR_SECRET_KEY inside this HTML file β
it only ever lives in Firebase rules + the GPS logger app.
main / rootAfter a minute or two, your tracker will be live at a URL like:
https://YOUR-GITHUB-NAME.github.io/SantaSleighTracker/santa_sleigh_tracker_final.html
π That URL is your public live map β weβll embed it next.
Paste this snippet wherever your site allows custom HTML (Carrd, WordPress, Squarespace, etc.):
<!-- π
Santa Sleigh Tracker Embed -->
<div style="width:90vw;max-width:1000px;margin:0 auto;padding:0 8px;">
<iframe
src="https://YOUR-GITHUB-NAME.github.io/SantaSleighTracker/santa_sleigh_tracker_final.html"
style="
width:100%;
height:80vh;
min-height:480px;
border:none;
border-radius:15px;
box-shadow:0 4px 18px #0002;
display:block;
margin:0 auto;
overflow:hidden;
"
allowfullscreen
loading="lazy"
></iframe>
</div>
β
Replace the src value with your own GitHub Pages URL.
The iframe is fully responsive and looks good on mobile and desktop.
To use a custom marker on the map:
iconUrl: "https://i.ibb.co/0jP05w6J/Santa-Marker.png",
Replace the URL with your own.
Generic Santa roundel marker you can use:
https://i.ibb.co/Z1BzZS2T/Santa-Marker-7.png
π¨ Canva template if you want to customise your own icon: Santa marker Canva design
location/current/YOUR_SECRET_KEY.
If the map doesnβt move, check:
β’ GPS Logger URL exactly matches your Firebase path (including .json).
β’ Rules include your YOUR_SECRET_KEY and are published.
β’ firebaseURL in your HTML uses the correct project ID + region.