By MD Fozla Rabbi, SEO Specialist
Small business owners in the Philippines love asking, "Should I be on TikTok, Instagram or just Facebook?" Honestly, the best answer is boring. Ask your customers.
I built a tiny JavaScript counter for a milk tea shop in Laguna to do exactly that. The cashier asked one question per order: "Saan mo kami nakita?" (Where did you find us?). Then tapped a button. After two weeks the owner had real numbers instead of guesses.
Here's the whole thing. No framework. No backend. Works offline on a cheap Android phone.
The idea
- One big button per social network
- Each tap adds one to that network's count
- Counts survive a page refresh (
localStorage) - A summary shows percentages, sorted
- An export button copies a CSV you can paste into Google Sheets
The HTML
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Saan mo kami nakita?</title> <style> body { font-family: system-ui, sans-serif; margin: 16px; } .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } button.net { font-size: 20px; padding: 22px 8px; border-radius: 12px; border: 0; color: #fff; } #summary li { margin: 4px 0; } </style> </head> <body> <h1>Saan mo kami nakita?</h1> <div class="grid" id="buttons"></div> <h2>Summary</h2> <ol id="summary"></ol> <button id="export">Copy CSV</button> <button id="reset">Reset</button> <script src="tally.js"></script> </body> </html> The JavaScript
const NETWORKS = [ { id: "facebook", label: "Facebook", color: "#1877f2" }, { id: "tiktok", label: "TikTok", color: "#111111" }, { id: "instagram", label: "Instagram", color: "#c13584" }, { id: "youtube", label: "YouTube", color: "#ff0000" }, { id: "friend", label: "Friend / walk-in", color: "#16a34a" }, { id: "other", label: "Other", color: "#6b7280" }, ]; const KEY = "ph-tally-v1"; const load = () => JSON.parse(localStorage.getItem(KEY) || "{}"); const save = (c) => localStorage.setItem(KEY, JSON.stringify(c)); function render() { const counts = load(); const total = Object.values(counts).reduce((a, b) => a + b, 0); const rows = NETWORKS .map(n => ({ ...n, n: counts[n.id] || 0 })) .sort((a, b) => b.n - a.n); document.getElementById("summary").innerHTML = rows.map(r => { const pct = total ? Math.round((100 * r.n) / total) : 0; return "<li>" + r.label + ": " + r.n + " (" + pct + "%)</li>"; }).join(""); } function buildButtons() { const box = document.getElementById("buttons"); NETWORKS.forEach(n => { const b = document.createElement("button"); b.className = "net"; b.textContent = n.label; b.style.background = n.color; b.onclick = () => { const c = load(); c[n.id] = (c[n.id] || 0) + 1; save(c); render(); navigator.vibrate && navigator.vibrate(30); }; box.appendChild(b); }); } document.getElementById("export").onclick = async () => { const c = load(); const csv = "network,count\n" + NETWORKS.map(n => n.id + "," + (c[n.id] || 0)).join("\n"); await navigator.clipboard.writeText(csv); alert("Copied! Paste into Google Sheets."); }; document.getElementById("reset").onclick = () => { if (confirm("Reset all counts?")) { localStorage.removeItem(KEY); render(); } }; buildButtons(); render(); Save both files in a folder, open index.html on the phone and add it to the home screen. Done.
What the milk tea shop learned
I won't invent exact numbers for you. But the pattern I see across small Filipino businesses is pretty consistent. Facebook usually leads for neighbourhood shops. TikTok climbs fast for food and trendy products. Instagram matters more for cafés with a "pretty" angle and younger crowds. And "friend told me" is always bigger than owners expect.
The point isn't my pattern. It's yours. Two weeks of taps beats any national statistic because it's your street and your customers.
Tweaks worth adding
- Add a date column so you can compare weekdays vs payday weekends (15th and 30th).
- Add "first time / returning" buttons to see which network brings new people.
- Sync to a Google Sheet with Apps Script if you want multiple branches.
Understanding the networks themselves
Once you know where customers come from, it helps to understand how each network actually works for a business. BoostingPH has a clear explainer on social networks, their types, benefits and how they work, written for the Philippine market. Good context before you shift your posting time around.
And if your data says "TikTok" but your account is brand new, a small starting push from BoostingPH can help the first videos not look empty while you build real content.
Measure first. Then post where your customers already are.
