feat(assistant): one-time disclaimer note + GA4 question-report guide

- Add a subtle disclaimer under the greeting (EN/MK/SI): "automated guide,
  can make mistakes — check the linked page for official steps." Shown once,
  not on every message, so it sets expectations without clutter. Persistent
  footer disclaimer stays.
- docs/GA4-ASSISTANT-REPORT.md: step-by-step for registering the custom
  dimensions and building the "top questions" + "unanswered questions"
  explorations in GA4 (dev-only doc, not deployed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
popovskikandClaude Opus 4.8 committed 2026-08-04 01:57:55 +02:00
1 parent 661943bb34
commit 55bc101410
3 files changed
+122 -1

No files matched your search

+10 -1
View File
@@ -15,16 +15,19 @@
var UIS = {
en: { title: "Ask MSOS", open: "Ask MSOS", placeholder: "Ask a question…", send: "Send", close: "Close",
greeting: "Hi! 👋 Ask me anything about studying in Slovenia or about MSOS — I'll point you to the right page. You can ask in English, Macedonian or Slovene.",
disc: "I'm an automated guide and can make mistakes — for official steps, deadlines and amounts, always check the linked page.",
found: "Here's what I found:", also: "You might also like:", more: "Read more",
none: "I couldn't find a clear answer for that. These might help:", tryLabel: "Popular questions:",
guideUrl: "/en/student-welcome-guide/", disclaimer: "Answers come straight from this website." },
mk: { title: "Прашај MSOS", open: "Прашај MSOS", placeholder: "Постави прашање…", send: "Испрати", close: "Затвори",
greeting: "Здраво! 👋 Прашај ме било што за студирање во Словенија или за MSOS — ќе те упатам до вистинската страница. Можеш да прашаш на македонски, англиски или словенечки.",
disc: "Јас сум автоматски водич и можам да згрешам — за официјални чекори, рокови и износи, секогаш провери ја поврзаната страница.",
found: "Еве што најдов:", also: "Можеби ќе ти користи и:", more: "Прочитај повеќе",
none: "Не најдов јасен одговор. Ова можеби ќе помогне:", tryLabel: "Популарни прашања:",
guideUrl: "/mk/student-welcome-guide/", disclaimer: "Одговорите доаѓаат директно од оваа страница." },
si: { title: "Vprašaj MSOS", open: "Vprašaj MSOS", placeholder: "Zastavi vprašanje…", send: "Pošlji", close: "Zapri",
greeting: "Živjo! 👋 Vprašaj me karkoli o študiju v Sloveniji ali o MSOS — usmeril te bom na pravo stran. Vprašaš lahko v slovenščini, angleščini ali makedonščini.",
disc: "Sem samodejni vodnik in se lahko zmotim — za uradne korake, roke in zneske vedno preveri povezano stran.",
found: "Tole sem našel:", also: "Morda te zanima tudi:", more: "Preberi več",
none: "Nisem našel jasnega odgovora. Morda pomaga to:", tryLabel: "Pogosta vprašanja:",
guideUrl: "/si/student-welcome-guide/", disclaimer: "Odgovori prihajajo neposredno s te spletne strani." }
@@ -283,7 +286,13 @@
function open() {
opened = true; root.classList.add("msa-open");
panel.setAttribute("aria-hidden", "false"); launch.setAttribute("aria-expanded", "true");
if (!log.childNodes.length) { bubble(esc(UI.greeting), "bot"); renderChips(); loadIndex(PAGE_LANG); }
if (!log.childNodes.length) {
bubble(esc(UI.greeting), "bot");
var note = document.createElement("div");
note.className = "msa-note"; note.textContent = UI.disc;
log.appendChild(note);
renderChips(); loadIndex(PAGE_LANG);
}
setTimeout(function () { input.focus(); }, 60);
}
function close() { opened = false; root.classList.remove("msa-open"); panel.setAttribute("aria-hidden", "true"); launch.setAttribute("aria-expanded", "false"); launch.focus(); }