Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

more exclusions (#1020)

Goldflagcb5a5ec59b36
diff --git a/client/messages/cs.json b/client/messages/cs.json
index 711c93e9f..8aef2f2e2 100644
--- a/client/messages/cs.json
+++ b/client/messages/cs.json
@@ -27,6 +27,7 @@
"/CkSRc": "Nebo pokračovat e-mailem",
"/EBXiO": "Tento člen má přístup ke všem webům v organizaci.",
"/I2MZO": "Detail relace",
+ "/JNWvl": "",
"/OvJVm": "",
"/VCXg7": "UTM Content",
"/Vcvr8": "Metrika Web Vitals pro měření výkonu webu.",
@@ -144,6 +145,7 @@
"4h8Ert": "Přehrávání relací je vypnuto",
"4l6vz1": "Kopírovat",
"4nfQk6": "Zachytávej JavaScript chyby a výjimky z tvého webu",
+ "4v7I1t": "",
"5/6deG": "Při načítání trychtýřů nastal problém. Zkus to prosím později.",
"51jo4g": "Tvůj API klíč",
"52UMW3": "Celé období",
@@ -260,6 +262,7 @@
"9VDOG/": "",
"9XUYQt": "Importovat",
"9YazHG": "",
+ "9ZPMMu": "",
"9a9+ww": "",
"9ctGsY": "",
"9d/EEp": "Produktová analytika",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} dalších vlastností",
"DZIViS": "Využití služby",
"DZY1mp": "Vše, co potřebuješ pro začátek jako malá firma",
+ "DcNXmv": "",
"Dfc9/a": "Pamatuješ si heslo?",
"Dg2v6W": "",
"DiWAe1": "Zkus vybrat jiný časový rozsah nebo se ujisti, že máš v systému sledovací data.",
@@ -384,9 +388,11 @@
"EmCZzy": "Sledování SPA navigace vypnuto",
"Ep4Hs9": "",
"Eq9gxg": "",
+ "EsWFCh": "",
"Ev6SEF": "Nové heslo",
"EwRIOm": "Uživatel",
"Ewavb9": "Vyber si předplatné pro pokračování sběru analytických dat.",
+ "ExtTiK": "",
"F/6VqP": "",
"F1HScC": "Filtrovat podle URL parametru",
"F3XA9+": "Smazat cíl",
@@ -542,9 +548,11 @@
"KfIZ6o": "Aktualizuj své jméno zobrazované napříč platformou",
"KiXNvz": "Spustit",
"KjXPXZ": "{count} relací",
+ "KkOM4O": "",
"KsWJL5": "Výjimky zemí",
"KtC97P": "Výstupní stránky",
"KzO2sB": "Sledování úvodního zobrazení stránky zapnuto",
+ "L07wnh": "",
"L1FoVW": "Nemáte oprávnění k zobrazení nastavení organizace.",
"L5X96Z": "URL vzory pro vyloučení ze sledování (jeden na řádek)",
"L8DzHm": "Název týmu je povinný",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Tělo požadavku (JSON)",
"M/h5TN": "Zobrazení",
+ "MAmm3B": "",
"MGHdwe": "Žádní uživatelé online za posledních 5 minut",
"MJ2jZQ": "Celkem",
"MKqZOD": "Obnovuji heslo...",
@@ -688,6 +697,7 @@
"RL7HbL": "Požádej vlastníka organizace o upgrade na Pro pro odemknutí {message}",
"RNCPOG": "Registrace",
"RQCAMr": "Nepodařilo se aktualizovat jméno",
+ "RVvz5q": "",
"RWQ/Ee": "Sledování kopírování zapnuto",
"RYG5QH": "",
"RZmPP6": "Žádné filtry nejsou použity. Klikni na \"Přidat filtr\" pro přidání.",
@@ -754,6 +764,7 @@
"TwyMau": "Účet",
"TxjoW4": "Stránka {current} z {total}",
"U01dmA": "Upravit tým",
+ "U0AIkl": "",
"U1H5v0": "Potřebuješ pomoc? Podívej se na naše zdroje:",
"U2stty": "ročně fakturováno za ${annualPrice}",
"U3UQfB": "",
@@ -1077,6 +1088,7 @@
"iUdoAt": "",
"iUmBQc": "Krok {number}",
"iX4wwR": "Nepodařilo se načíst API klíče",
+ "iaaq06": "",
"iakHpf": "",
"ibyol4": "Neznámá poloha",
"ifZ5a3": "Hledej štítky...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Vyber vlastnost Google Search Console",
"lnIbba": "Sledování IP adresy vypnuto",
"lnaWo/": "Region",
+ "lp7ltY": "",
"lqNsts": "Nová vlastnost",
"lu/vDB": "",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Přehrávání relací",
"mkp+qF": "Další parametry",
"mlMQEA": "Odesílat týdenní emailové reporty",
+ "n+tV1v": "",
"n02jRA": "",
"n5Q9H0": "Název události",
"n5XyC0": "",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Blížíš se k měsíčnímu limitu událostí. Pokud potřebuješ více kapacity, kontaktuj prosím podporu.",
"nnuMWB": "Cesty obsahující /blog/ následované čímkoli",
"noZdV2": "Mažu...",
+ "nvC97K": "",
"nwqt7T": "",
"nxIEYS": "Min. délka (s)",
"nzStJU": "Všechna přehrávání načtena",
diff --git a/client/messages/de.json b/client/messages/de.json
index 636425ec5..049df6d6e 100644
--- a/client/messages/de.json
+++ b/client/messages/de.json
@@ -27,6 +27,7 @@
"/CkSRc": "Oder mit E-Mail fortfahren",
"/EBXiO": "Dieses Mitglied hat Zugriff auf alle Websites der Organisation.",
"/I2MZO": "Sitzungsdetails",
+ "/JNWvl": "",
"/OvJVm": "Weniger anzeigen",
"/VCXg7": "UTM-Inhalt",
"/Vcvr8": "Web Vitals-Metrik zur Messung der Website-Leistung.",
@@ -144,6 +145,7 @@
"4h8Ert": "Session Replay ist deaktiviert",
"4l6vz1": "Kopieren",
"4nfQk6": "JavaScript-Fehler und Ausnahmen von Ihrer Website erfassen",
+ "4v7I1t": "",
"5/6deG": "Beim Abrufen der Trichter ist ein Problem aufgetreten. Bitte versuchen Sie es später erneut.",
"51jo4g": "Ihr API-Schlüssel",
"52UMW3": "Gesamtzeitraum",
@@ -260,6 +262,7 @@
"9VDOG/": "Mindestens zwei Varianten hinzufügen",
"9XUYQt": "Importieren",
"9YazHG": "Unternehmen",
+ "9ZPMMu": "",
"9a9+ww": "Titel",
"9ctGsY": "Feature-Flag aktualisiert",
"9d/EEp": "Produktanalyse",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} weitere Merkmale",
"DZIViS": "Dienstnutzung",
"DZY1mp": "Alles, was Sie als kleines Unternehmen brauchen",
+ "DcNXmv": "",
"Dfc9/a": "Passwort erinnert?",
"Dg2v6W": "Wert auswählen",
"DiWAe1": "Versuchen Sie, einen anderen Zeitraum auszuwählen, oder stellen Sie sicher, dass Tracking-Daten im System vorhanden sind.",
@@ -384,9 +388,11 @@
"EmCZzy": "SPA-Navigations-Tracking deaktiviert",
"Ep4Hs9": "Websites suchen...",
"Eq9gxg": "Breite (px)",
+ "EsWFCh": "",
"Ev6SEF": "Neues Passwort",
"EwRIOm": "Benutzer",
"Ewavb9": "Wählen Sie einen Abonnementplan, um weiterhin Analysedaten zu sammeln.",
+ "ExtTiK": "",
"F/6VqP": "Server",
"F1HScC": "Nach URL-Parameter filtern",
"F3XA9+": "Ziel löschen",
@@ -542,9 +548,11 @@
"KfIZ6o": "Aktualisieren Sie Ihren auf der Plattform angezeigten Namen",
"KiXNvz": "Ausführen",
"KjXPXZ": "{count} Sitzungen",
+ "KkOM4O": "",
"KsWJL5": "Länderausschlüsse",
"KtC97P": "Ausstiegsseiten",
"KzO2sB": "Tracking des ersten Seitenaufrufs aktiviert",
+ "L07wnh": "",
"L1FoVW": "Sie haben keine Berechtigung, die Organisationseinstellungen anzuzeigen.",
"L5X96Z": "URL-Muster, die vom Tracking ausgeschlossen werden sollen (eines pro Zeile)",
"L8DzHm": "Teamname ist erforderlich",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Anfragekörper (JSON)",
"M/h5TN": "Impressionen",
+ "MAmm3B": "",
"MGHdwe": "Keine Benutzer in den letzten 5 Minuten online",
"MJ2jZQ": "Gesamt",
"MKqZOD": "Passwort wird zurückgesetzt...",
@@ -688,6 +697,7 @@
"RL7HbL": "Bitten Sie Ihren Organisationsinhaber, auf Pro upzugraden, um {message} freizuschalten",
"RNCPOG": "Registrierung",
"RQCAMr": "Name konnte nicht aktualisiert werden",
+ "RVvz5q": "",
"RWQ/Ee": "Kopier-Tracking aktiviert",
"RYG5QH": "Website verschieben",
"RZmPP6": "Keine Filter angewendet. Klicken Sie auf \"Filter hinzufügen\", um einen hinzuzufügen.",
@@ -754,6 +764,7 @@
"TwyMau": "Konto",
"TxjoW4": "Seite {current} von {total}",
"U01dmA": "Team bearbeiten",
+ "U0AIkl": "",
"U1H5v0": "Brauchen Sie Hilfe? Sehen Sie sich unsere Ressourcen an:",
"U2stty": "jährlich abgerechnet bei {annualPrice} $",
"U3UQfB": "Eine vollständige Aufteilung sollte 100 Prozent ergeben, außer Sie möchten bewusst nicht zugewiesenen Traffic.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Zeitfenster",
"iUmBQc": "Schritt {number}",
"iX4wwR": "API-Schlüssel konnten nicht geladen werden",
+ "iaaq06": "",
"iakHpf": "Versuchen Sie, Ihre Filter anzupassen",
"ibyol4": "Unbekannter Standort",
"ifZ5a3": "Tags suchen...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Google Search Console-Property auswählen",
"lnIbba": "IP-Adress-Tracking deaktiviert",
"lnaWo/": "Region",
+ "lp7ltY": "",
"lqNsts": "Neue Eigenschaft",
"lu/vDB": "Mehrere Varianten",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Sitzungsaufzeichnung",
"mkp+qF": "Zusätzliche Parameter",
"mlMQEA": "Wöchentliche E-Mail-Berichte senden",
+ "n+tV1v": "",
"n02jRA": "Akzentfarbe",
"n5Q9H0": "Event-Name",
"n5XyC0": "Dieses Flag wird serverseitig ausgewertet. Rufen Sie die Evaluate-API von Ihrem Backend aus auf, anstatt das Browser-Skript zu verwenden.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Sie nähern sich Ihrem monatlichen Event-Limit. Bitte kontaktieren Sie den Support, falls Sie mehr Kapazität benötigen.",
"nnuMWB": "Pfade, die /blog/ gefolgt von beliebigem Inhalt enthalten",
"noZdV2": "Wird gelöscht...",
+ "nvC97K": "",
"nwqt7T": "Dashboards",
"nxIEYS": "Min. Dauer (s)",
"nzStJU": "Alle Replays geladen",
diff --git a/client/messages/en.json b/client/messages/en.json
index 5fab7ecb4..787d49c65 100644
--- a/client/messages/en.json
+++ b/client/messages/en.json
@@ -27,6 +27,7 @@
"/CkSRc": "Or continue with email",
"/EBXiO": "This member has access to all sites in the organization.",
"/I2MZO": "Session Details",
+ "/JNWvl": "Loading user agent exclusions...",
"/OvJVm": "Show fewer",
"/VCXg7": "UTM Content",
"/Vcvr8": "Web Vitals metric for measuring website performance.",
@@ -144,6 +145,7 @@
"4h8Ert": "Session Replay is Disabled",
"4l6vz1": "Copy",
"4nfQk6": "Capture JavaScript errors and exceptions from your site",
+ "4v7I1t": "Path Exclusions",
"5/6deG": "There was a problem fetching the funnels. Please try again later.",
"51jo4g": "Your API Key",
"52UMW3": "All Time",
@@ -260,6 +262,7 @@
"9VDOG/": "Add at least two variants",
"9XUYQt": "Import",
"9YazHG": "Company",
+ "9ZPMMu": "Exclude traffic from user agents containing any of these terms. Matching is a case-insensitive substring (e.g., HeadlessChrome).",
"9a9+ww": "Title",
"9ctGsY": "Feature flag updated",
"9d/EEp": "Product Analytics",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} more traits",
"DZIViS": "Service Usage",
"DZY1mp": "Everything you need to get started as a small business",
+ "DcNXmv": "Maximum 100 hostname exclusions allowed",
"Dfc9/a": "Remember your password?",
"Dg2v6W": "pick value",
"DiWAe1": "Try selecting a different time range or make sure you have tracking data in the system.",
@@ -384,9 +388,11 @@
"EmCZzy": "SPA navigation tracking disabled",
"Ep4Hs9": "Search sites...",
"Eq9gxg": "Width (px)",
+ "EsWFCh": "User Agent Exclusions",
"Ev6SEF": "New Password",
"EwRIOm": "User",
"Ewavb9": "Choose a subscription plan to continue collecting analytics data.",
+ "ExtTiK": "Add Path",
"F/6VqP": "Server",
"F1HScC": "Filter by URL parameter",
"F3XA9+": "Delete Goal",
@@ -542,9 +548,11 @@
"KfIZ6o": "Update your name displayed across the platform",
"KiXNvz": "Run",
"KjXPXZ": "{count} sessions",
+ "KkOM4O": "Maximum 100 path exclusions allowed",
"KsWJL5": "Country Exclusions",
"KtC97P": "Exit Pages",
"KzO2sB": "Initial page view tracking enabled",
+ "L07wnh": "Hostname Exclusions",
"L1FoVW": "You don't have permission to view organization settings.",
"L5X96Z": "URL patterns to exclude from tracking (one per line)",
"L8DzHm": "Team name is required",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Request Body (JSON)",
"M/h5TN": "Impressions",
+ "MAmm3B": "Exclude traffic from specific hostnames such as staging or preview domains. Use * as a wildcard (e.g., localhost or *.vercel.app). Matching is case-insensitive.",
"MGHdwe": "No users online in the past 5 minutes",
"MJ2jZQ": "Total",
"MKqZOD": "Resetting password...",
@@ -688,6 +697,7 @@
"RL7HbL": "Ask your organization owner to upgrade to Pro to unlock {message}",
"RNCPOG": "Signup",
"RQCAMr": "Failed to update name",
+ "RVvz5q": "Add Hostname",
"RWQ/Ee": "Copy tracking enabled",
"RYG5QH": "Move site",
"RZmPP6": "No filters applied. Click \"Add Filter\" to add one.",
@@ -754,6 +764,7 @@
"TwyMau": "Account",
"TxjoW4": "Page {current} of {total}",
"U01dmA": "Edit Team",
+ "U0AIkl": "Add User Agent",
"U1H5v0": "Need help? Check out our resources:",
"U2stty": "billed annually at ${annualPrice}",
"U3UQfB": "A full split should add up to 100 percent unless you intentionally want unassigned traffic.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Time Window",
"iUmBQc": "Step {number}",
"iX4wwR": "Failed to load API keys",
+ "iaaq06": "Loading path exclusions...",
"iakHpf": "Try adjusting your filters",
"ibyol4": "Unknown location",
"ifZ5a3": "Search tags...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Select Google Search Console Property",
"lnIbba": "IP address tracking disabled",
"lnaWo/": "Region",
+ "lp7ltY": "Loading hostname exclusions...",
"lqNsts": "New Property",
"lu/vDB": "Multiple variants",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Session Replay",
"mkp+qF": "Additional Parameters",
"mlMQEA": "Send Weekly Email Reports",
+ "n+tV1v": "Exclude traffic to specific pages. Use * as a wildcard (e.g., /admin/* or /preview). Matching is case-insensitive.",
"n02jRA": "Accent color",
"n5Q9H0": "Event Name",
"n5XyC0": "This flag is evaluated server-side. Call the evaluate API from your backend instead of the browser script.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "You are approaching your monthly event limit. Please contact support if you need more capacity.",
"nnuMWB": "Paths containing /blog/ followed by anything",
"noZdV2": "Deleting...",
+ "nvC97K": "Maximum 100 user agent exclusions allowed",
"nwqt7T": "Dashboards",
"nxIEYS": "Min duration (s)",
"nzStJU": "All replays loaded",
diff --git a/client/messages/es.json b/client/messages/es.json
index 237c9d53e..79933db4c 100644
--- a/client/messages/es.json
+++ b/client/messages/es.json
@@ -27,6 +27,7 @@
"/CkSRc": "O continuar con correo electrónico",
"/EBXiO": "Este miembro tiene acceso a todos los sitios de la organización.",
"/I2MZO": "Detalles de la sesión",
+ "/JNWvl": "",
"/OvJVm": "Mostrar menos",
"/VCXg7": "Contenido UTM",
"/Vcvr8": "Métrica de Web Vitals para medir el rendimiento del sitio web.",
@@ -144,6 +145,7 @@
"4h8Ert": "La repetición de sesión está desactivada",
"4l6vz1": "Copiar",
"4nfQk6": "Captura errores y excepciones de JavaScript de tu sitio",
+ "4v7I1t": "",
"5/6deG": "Hubo un problema al obtener los embudos. Inténtalo de nuevo más tarde.",
"51jo4g": "Tu clave de API",
"52UMW3": "Todo el tiempo",
@@ -260,6 +262,7 @@
"9VDOG/": "Añade al menos dos variantes",
"9XUYQt": "Importar",
"9YazHG": "Empresa",
+ "9ZPMMu": "",
"9a9+ww": "Título",
"9ctGsY": "Bandera de funcionalidad actualizada",
"9d/EEp": "Analíticas de Producto",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} rasgos más",
"DZIViS": "Uso del servicio",
"DZY1mp": "Todo lo que necesitas para empezar como una pequeña empresa",
+ "DcNXmv": "",
"Dfc9/a": "¿Recuerdas tu contraseña?",
"Dg2v6W": "elegir valor",
"DiWAe1": "Prueba a seleccionar un rango de tiempo diferente o asegúrate de tener datos de seguimiento en el sistema.",
@@ -384,9 +388,11 @@
"EmCZzy": "Rastreo de navegación SPA desactivado",
"Ep4Hs9": "Buscar sitios...",
"Eq9gxg": "Ancho (px)",
+ "EsWFCh": "",
"Ev6SEF": "Nueva contraseña",
"EwRIOm": "Usuario",
"Ewavb9": "Elige un plan de suscripción para seguir recopilando datos de analíticas.",
+ "ExtTiK": "",
"F/6VqP": "Servidor",
"F1HScC": "Filtrar por parámetro URL",
"F3XA9+": "Eliminar objetivo",
@@ -542,9 +548,11 @@
"KfIZ6o": "Actualiza tu nombre mostrado en la plataforma",
"KiXNvz": "Ejecutar",
"KjXPXZ": "{count} sesiones",
+ "KkOM4O": "",
"KsWJL5": "Exclusiones de países",
"KtC97P": "Páginas de salida",
"KzO2sB": "Rastreo de vista de página inicial activado",
+ "L07wnh": "",
"L1FoVW": "No tienes permiso para ver la configuración de la organización.",
"L5X96Z": "Patrones de URL a excluir del seguimiento (uno por línea)",
"L8DzHm": "El nombre del equipo es obligatorio",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Cuerpo de la solicitud (JSON)",
"M/h5TN": "Impresiones",
+ "MAmm3B": "",
"MGHdwe": "No hay usuarios en línea en los últimos 5 minutos",
"MJ2jZQ": "Total",
"MKqZOD": "Restableciendo contraseña...",
@@ -688,6 +697,7 @@
"RL7HbL": "Pide al propietario de tu organización que actualice a Pro para desbloquear {message}",
"RNCPOG": "Registro",
"RQCAMr": "Error al actualizar el nombre",
+ "RVvz5q": "",
"RWQ/Ee": "Rastreo de eventos de copia activado",
"RYG5QH": "Mover sitio",
"RZmPP6": "No hay filtros aplicados. Haz clic en \"Añadir Filtro\" para añadir uno.",
@@ -754,6 +764,7 @@
"TwyMau": "Cuenta",
"TxjoW4": "Página {current} de {total}",
"U01dmA": "Editar equipo",
+ "U0AIkl": "",
"U1H5v0": "¿Necesitas ayuda? Echa un vistazo a nuestros recursos:",
"U2stty": "facturado anualmente a ${annualPrice}",
"U3UQfB": "Una distribución completa debe sumar 100 por ciento a menos que quieras tráfico sin asignar intencionalmente.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Ventana de Tiempo",
"iUmBQc": "Paso {number}",
"iX4wwR": "Error al cargar claves de API",
+ "iaaq06": "",
"iakHpf": "Intenta ajustar tus filtros",
"ibyol4": "Ubicación desconocida",
"ifZ5a3": "Buscar etiquetas...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Seleccionar propiedad de Google Search Console",
"lnIbba": "Rastreo de dirección IP desactivado",
"lnaWo/": "Región",
+ "lp7ltY": "",
"lqNsts": "Nueva propiedad",
"lu/vDB": "Múltiples variantes",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Repetición de Sesión",
"mkp+qF": "Parámetros adicionales",
"mlMQEA": "Enviar informes semanales por correo",
+ "n+tV1v": "",
"n02jRA": "Color de énfasis",
"n5Q9H0": "Nombre del evento",
"n5XyC0": "Esta bandera se evalúa en el servidor. Llama a la API de evaluación desde tu backend en lugar del script del navegador.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Te estás acercando a tu límite mensual de eventos. Por favor, contacta con soporte si necesitas más capacidad.",
"nnuMWB": "Rutas que contienen /blog/ seguido de cualquier cosa",
"noZdV2": "Eliminando...",
+ "nvC97K": "",
"nwqt7T": "Paneles",
"nxIEYS": "Duración mínima (s)",
"nzStJU": "Todas las repeticiones cargadas",
diff --git a/client/messages/fr.json b/client/messages/fr.json
index 397069128..61104ae3d 100644
--- a/client/messages/fr.json
+++ b/client/messages/fr.json
@@ -27,6 +27,7 @@
"/CkSRc": "Ou continuer avec e-mail",
"/EBXiO": "Ce membre a accès à tous les sites de l'organisation.",
"/I2MZO": "Détails de la session",
+ "/JNWvl": "",
"/OvJVm": "Afficher moins",
"/VCXg7": "Contenu UTM",
"/Vcvr8": "Métrique Web Vitals pour mesurer la performance du site web.",
@@ -144,6 +145,7 @@
"4h8Ert": "Le Session Replay est désactivé",
"4l6vz1": "Copier",
"4nfQk6": "Capturer les erreurs JavaScript et les exceptions de votre site",
+ "4v7I1t": "",
"5/6deG": "Un problème est survenu lors de la récupération des entonnoirs. Veuillez réessayer plus tard.",
"51jo4g": "Votre clé API",
"52UMW3": "Depuis toujours",
@@ -260,6 +262,7 @@
"9VDOG/": "Ajouter au moins deux variantes",
"9XUYQt": "Importer",
"9YazHG": "Entreprise",
+ "9ZPMMu": "",
"9a9+ww": "Titre",
"9ctGsY": "Feature flag mis à jour",
"9d/EEp": "Analyse produit",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} attributs supplémentaires",
"DZIViS": "Utilisation du service",
"DZY1mp": "Tout ce dont vous avez besoin pour démarrer en tant que petite entreprise",
+ "DcNXmv": "",
"Dfc9/a": "Vous vous souvenez de votre mot de passe ?",
"Dg2v6W": "choisir une valeur",
"DiWAe1": "Essayez de sélectionner une autre période ou assurez-vous d'avoir des données de suivi dans le système.",
@@ -384,9 +388,11 @@
"EmCZzy": "Suivi de la navigation SPA désactivé",
"Ep4Hs9": "Rechercher des sites...",
"Eq9gxg": "Largeur (px)",
+ "EsWFCh": "",
"Ev6SEF": "Nouveau mot de passe",
"EwRIOm": "Utilisateur",
"Ewavb9": "Choisissez un plan d'abonnement pour continuer à collecter des données analytiques.",
+ "ExtTiK": "",
"F/6VqP": "Serveur",
"F1HScC": "Filtrer par paramètre URL",
"F3XA9+": "Supprimer l'objectif",
@@ -542,9 +548,11 @@
"KfIZ6o": "Mettez à jour votre nom affiché sur la plateforme",
"KiXNvz": "Exécuter",
"KjXPXZ": "{count} sessions",
+ "KkOM4O": "",
"KsWJL5": "Exclusions de pays",
"KtC97P": "Pages de sortie",
"KzO2sB": "Suivi de la première page vue activé",
+ "L07wnh": "",
"L1FoVW": "Vous n'avez pas l'autorisation de consulter les paramètres de l'organisation.",
"L5X96Z": "Modèles d'URL à exclure du suivi (un par ligne)",
"L8DzHm": "Le nom de l'équipe est requis",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Corps de la requête (JSON)",
"M/h5TN": "Impressions",
+ "MAmm3B": "",
"MGHdwe": "Aucun utilisateur en ligne ces 5 dernières minutes",
"MJ2jZQ": "Total",
"MKqZOD": "Réinitialisation du mot de passe...",
@@ -688,6 +697,7 @@
"RL7HbL": "Demandez au propriétaire de votre organisation de passer à Pro pour débloquer {message}",
"RNCPOG": "Inscription",
"RQCAMr": "Échec de la mise à jour du nom",
+ "RVvz5q": "",
"RWQ/Ee": "Suivi des copies activé",
"RYG5QH": "Déplacer le site",
"RZmPP6": "Aucun filtre appliqué. Cliquez sur \"Ajouter un filtre\" pour en ajouter un.",
@@ -754,6 +764,7 @@
"TwyMau": "Compte",
"TxjoW4": "Page {current} sur {total}",
"U01dmA": "Modifier l'équipe",
+ "U0AIkl": "",
"U1H5v0": "Besoin d'aide ? Consultez nos ressources :",
"U2stty": "facturé annuellement à {annualPrice} $",
"U3UQfB": "Une répartition totale doit atteindre 100 % sauf si vous souhaitez intentionnellement du trafic non assigné.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Fenêtre de temps",
"iUmBQc": "Étape {number}",
"iX4wwR": "Échec du chargement des clés API",
+ "iaaq06": "",
"iakHpf": "Essayez d'ajuster vos filtres",
"ibyol4": "Emplacement inconnu",
"ifZ5a3": "Rechercher des tags...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Sélectionner la propriété Google Search Console",
"lnIbba": "Suivi des adresses IP désactivé",
"lnaWo/": "Région",
+ "lp7ltY": "",
"lqNsts": "Nouvelle propriété",
"lu/vDB": "Variantes multiples",
"luhCIe": "IP :",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Enregistrement de session",
"mkp+qF": "Paramètres supplémentaires",
"mlMQEA": "Envoyer des rapports hebdomadaires par e-mail",
+ "n+tV1v": "",
"n02jRA": "Couleur d'accentuation",
"n5Q9H0": "Nom de l'événement",
"n5XyC0": "Ce drapeau est évalué côté serveur. Appelez l'API d'évaluation depuis votre backend plutôt que depuis le script navigateur.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Vous approchez de votre limite mensuelle d'événements. Veuillez contacter le support si vous avez besoin de plus de capacité.",
"nnuMWB": "Chemins contenant /blog/ suivi de n'importe quoi",
"noZdV2": "Suppression en cours...",
+ "nvC97K": "",
"nwqt7T": "Tableaux de bord",
"nxIEYS": "Min. durée (s)",
"nzStJU": "Tous les replays chargés",
diff --git a/client/messages/it.json b/client/messages/it.json
index 3cdd0af97..870596be9 100644
--- a/client/messages/it.json
+++ b/client/messages/it.json
@@ -27,6 +27,7 @@
"/CkSRc": "Oppure continua con l'email",
"/EBXiO": "Questo membro ha accesso a tutti i siti dell'organizzazione.",
"/I2MZO": "Dettagli Sessione",
+ "/JNWvl": "",
"/OvJVm": "Mostra meno",
"/VCXg7": "Contenuto UTM",
"/Vcvr8": "Metrica Web Vitals per misurare le prestazioni del sito web.",
@@ -144,6 +145,7 @@
"4h8Ert": "La riproduzione della sessione è Disabilitata",
"4l6vz1": "Copia",
"4nfQk6": "Cattura errori ed eccezioni JavaScript dal tuo sito",
+ "4v7I1t": "",
"5/6deG": "Si è verificato un problema nel recupero dei funnel. Riprova più tardi.",
"51jo4g": "La tua Chiave API",
"52UMW3": "Tutto il tempo",
@@ -260,6 +262,7 @@
"9VDOG/": "Aggiungi almeno due varianti",
"9XUYQt": "Importa",
"9YazHG": "Azienda",
+ "9ZPMMu": "",
"9a9+ww": "Titolo",
"9ctGsY": "Feature flag aggiornato",
"9d/EEp": "Analisi del Prodotto",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} altri tratti",
"DZIViS": "Utilizzo del Servizio",
"DZY1mp": "Tutto il necessario per iniziare come piccola impresa",
+ "DcNXmv": "",
"Dfc9/a": "Ricordi la tua password?",
"Dg2v6W": "scegli valore",
"DiWAe1": "Prova a selezionare un intervallo di tempo diverso o assicurati di avere dati di tracciamento nel sistema.",
@@ -384,9 +388,11 @@
"EmCZzy": "Tracciamento navigazione SPA disabilitato",
"Ep4Hs9": "Cerca siti...",
"Eq9gxg": "Larghezza (px)",
+ "EsWFCh": "",
"Ev6SEF": "Nuova Password",
"EwRIOm": "Utente",
"Ewavb9": "Scegli un piano di abbonamento per continuare a raccogliere dati di analisi.",
+ "ExtTiK": "",
"F/6VqP": "Server",
"F1HScC": "Filtra per parametro URL",
"F3XA9+": "Elimina Obiettivo",
@@ -542,9 +548,11 @@
"KfIZ6o": "Aggiorna il tuo nome visualizzato sulla piattaforma",
"KiXNvz": "Esegui",
"KjXPXZ": "{count} sessioni",
+ "KkOM4O": "",
"KsWJL5": "Esclusioni Paesi",
"KtC97P": "Pagine di Uscita",
"KzO2sB": "Tracciamento visualizzazione pagina iniziale abilitato",
+ "L07wnh": "",
"L1FoVW": "Non hai il permesso di visualizzare le impostazioni dell'organizzazione.",
"L5X96Z": "Modelli URL da escludere dal tracciamento (uno per riga)",
"L8DzHm": "Il nome del team è obbligatorio",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Corpo della Richiesta (JSON)",
"M/h5TN": "Impressioni",
+ "MAmm3B": "",
"MGHdwe": "Nessun utente online negli ultimi 5 minuti",
"MJ2jZQ": "Totale",
"MKqZOD": "Reimpostazione password in corso...",
@@ -688,6 +697,7 @@
"RL7HbL": "Chiedi al proprietario della tua organizzazione di passare a Pro per sbloccare {message}",
"RNCPOG": "Registrazione",
"RQCAMr": "Impossibile aggiornare il nome",
+ "RVvz5q": "",
"RWQ/Ee": "Tracciamento copia abilitato",
"RYG5QH": "Sposta sito",
"RZmPP6": "Nessun filtro applicato. Clicca \"Aggiungi Filtro\" per aggiungerne uno.",
@@ -754,6 +764,7 @@
"TwyMau": "Account",
"TxjoW4": "Pagina {current} di {total}",
"U01dmA": "Modifica team",
+ "U0AIkl": "",
"U1H5v0": "Hai bisogno di aiuto? Dai un'occhiata alle nostre risorse:",
"U2stty": "fatturato annualmente a ${annualPrice}",
"U3UQfB": "Una suddivisione completa deve sommare al 100% a meno che non si voglia intenzionalmente del traffico non assegnato.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Finestra Temporale",
"iUmBQc": "Passaggio {number}",
"iX4wwR": "Impossibile caricare le chiavi API",
+ "iaaq06": "",
"iakHpf": "Prova a modificare i filtri",
"ibyol4": "Posizione sconosciuta",
"ifZ5a3": "Cerca tag...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Seleziona Proprietà Google Search Console",
"lnIbba": "Tracciamento indirizzo IP disabilitato",
"lnaWo/": "Regione",
+ "lp7ltY": "",
"lqNsts": "Nuova Proprietà",
"lu/vDB": "Varianti multiple",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Riproduzione Sessione",
"mkp+qF": "Parametri Aggiuntivi",
"mlMQEA": "Invia Report Email Settimanali",
+ "n+tV1v": "",
"n02jRA": "Colore di accento",
"n5Q9H0": "Nome Evento",
"n5XyC0": "Questo flag viene valutato lato server. Chiama l'API di valutazione dal tuo backend invece dello script del browser.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Ti stai avvicinando al tuo limite di eventi mensili. Contatta il supporto se hai bisogno di maggiore capacità.",
"nnuMWB": "Percorsi che contengono /blog/ seguito da qualsiasi cosa",
"noZdV2": "Eliminazione in corso...",
+ "nvC97K": "",
"nwqt7T": "Dashboard",
"nxIEYS": "Durata minima (s)",
"nzStJU": "Tutte le riproduzioni caricate",
diff --git a/client/messages/ja.json b/client/messages/ja.json
index a03e85fe9..36da83b92 100644
--- a/client/messages/ja.json
+++ b/client/messages/ja.json
@@ -27,6 +27,7 @@
"/CkSRc": "またはメールで続行",
"/EBXiO": "このメンバーは組織内のすべてのサイトにアクセスできます。",
"/I2MZO": "セッション詳細",
+ "/JNWvl": "",
"/OvJVm": "表示を減らす",
"/VCXg7": "UTMコンテンツ",
"/Vcvr8": "Webサイトパフォーマンス測定用のWeb Vitals指標。",
@@ -144,6 +145,7 @@
"4h8Ert": "セッションリプレイは無効です",
"4l6vz1": "コピー",
"4nfQk6": "サイトのJavaScriptエラーと例外をキャプチャ",
+ "4v7I1t": "",
"5/6deG": "ファネルの取得中に問題が発生しました。後でもう一度お試しください。",
"51jo4g": "あなたのAPIキー",
"52UMW3": "全期間",
@@ -260,6 +262,7 @@
"9VDOG/": "バリアントを2つ以上追加してください",
"9XUYQt": "インポート",
"9YazHG": "会社",
+ "9ZPMMu": "",
"9a9+ww": "タイトル",
"9ctGsY": "フィーチャーフラグを更新しました",
"9d/EEp": "プロダクトアナリティクス",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count}件の属性",
"DZIViS": "サービス使用量",
"DZY1mp": "小規模ビジネスの開始に必要なすべて",
+ "DcNXmv": "",
"Dfc9/a": "パスワードを覚えていますか?",
"Dg2v6W": "値を選択",
"DiWAe1": "別の時間範囲を選択するか、システムにトラッキングデータがあることを確認してください。",
@@ -384,9 +388,11 @@
"EmCZzy": "SPAナビゲーション追跡を無効にしました",
"Ep4Hs9": "サイトを検索...",
"Eq9gxg": "幅 (px)",
+ "EsWFCh": "",
"Ev6SEF": "新しいパスワード",
"EwRIOm": "ユーザー",
"Ewavb9": "アナリティクスデータの収集を続けるにはサブスクリプションプランを選択してください。",
+ "ExtTiK": "",
"F/6VqP": "サーバー",
"F1HScC": "URLパラメータでフィルター",
"F3XA9+": "ゴールを削除",
@@ -542,9 +548,11 @@
"KfIZ6o": "プラットフォーム全体で表示される名前を更新",
"KiXNvz": "実行",
"KjXPXZ": "{count}セッション",
+ "KkOM4O": "",
"KsWJL5": "国除外",
"KtC97P": "出口ページ",
"KzO2sB": "初回ページビュー追跡を有効にしました",
+ "L07wnh": "",
"L1FoVW": "組織設定を表示する権限がありません。",
"L5X96Z": "トラッキングから除外するURLパターン(1行に1つ)",
"L8DzHm": "チーム名は必須です",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "リクエストボディ (JSON)",
"M/h5TN": "インプレッション",
+ "MAmm3B": "",
"MGHdwe": "過去5分間にオンラインのユーザーはいません",
"MJ2jZQ": "合計",
"MKqZOD": "パスワードをリセット中...",
@@ -688,6 +697,7 @@
"RL7HbL": "組織オーナーにProへのアップグレードを依頼して{message}をアンロック",
"RNCPOG": "サインアップ",
"RQCAMr": "名前の更新に失敗しました",
+ "RVvz5q": "",
"RWQ/Ee": "コピー追跡を有効にしました",
"RYG5QH": "サイトを移動",
"RZmPP6": "フィルターが適用されていません。「フィルターを追加」をクリックして追加してください。",
@@ -754,6 +764,7 @@
"TwyMau": "アカウント",
"TxjoW4": "{total}ページ中{current}ページ",
"U01dmA": "チームを編集",
+ "U0AIkl": "",
"U1H5v0": "ヘルプが必要ですか?リソースをご確認ください:",
"U2stty": "年額${annualPrice}で請求",
"U3UQfB": "意図的に未割り当てのトラフィックを残す場合を除き、完全な分割は合計100%になる必要があります。",
@@ -1077,6 +1088,7 @@
"iUdoAt": "時間ウィンドウ",
"iUmBQc": "ステップ{number}",
"iX4wwR": "APIキーの読み込みに失敗しました",
+ "iaaq06": "",
"iakHpf": "フィルターを調整してみてください",
"ibyol4": "不明な場所",
"ifZ5a3": "タグを検索...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Google Search Consoleプロパティを選択",
"lnIbba": "IPアドレス追跡を無効にしました",
"lnaWo/": "地域",
+ "lp7ltY": "",
"lqNsts": "新しいプロパティ",
"lu/vDB": "複数のバリアント",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "セッションリプレイ",
"mkp+qF": "追加パラメーター",
"mlMQEA": "週次メールレポートを送信",
+ "n+tV1v": "",
"n02jRA": "アクセントカラー",
"n5Q9H0": "イベント名",
"n5XyC0": "このフラグはサーバーサイドで評価されます。ブラウザスクリプトの代わりに、バックエンドからevaluate APIを呼び出してください。",
@@ -1214,6 +1228,7 @@
"ni0MP6": "月間イベント上限に近づいています。容量を増やす必要がある場合はサポートにお問い合わせください。",
"nnuMWB": "/blog/を含むパスとその後に続く任意の文字列",
"noZdV2": "削除中...",
+ "nvC97K": "",
"nwqt7T": "ダッシュボード",
"nxIEYS": "最短時間(秒)",
"nzStJU": "すべてのリプレイを読み込みました",
diff --git a/client/messages/ko.json b/client/messages/ko.json
index bca91c14a..53d8983d1 100644
--- a/client/messages/ko.json
+++ b/client/messages/ko.json
@@ -27,6 +27,7 @@
"/CkSRc": "또는 이메일로 계속",
"/EBXiO": "이 멤버는 조직의 모든 사이트에 액세스할 수 있습니다.",
"/I2MZO": "세션 상세",
+ "/JNWvl": "",
"/OvJVm": "더 적게 표시",
"/VCXg7": "UTM 콘텐츠",
"/Vcvr8": "웹사이트 성능을 측정하는 Web Vitals 지표.",
@@ -144,6 +145,7 @@
"4h8Ert": "세션 리플레이가 비활성화됨",
"4l6vz1": "복사",
"4nfQk6": "사이트에서 JavaScript 오류 및 예외를 캡처합니다",
+ "4v7I1t": "",
"5/6deG": "퍼널을 가져오는 중 문제가 발생했습니다. 나중에 다시 시도해 주세요.",
"51jo4g": "내 API 키",
"52UMW3": "전체 기간",
@@ -260,6 +262,7 @@
"9VDOG/": "변형을 최소 두 개 이상 추가하세요",
"9XUYQt": "가져오기",
"9YazHG": "회사",
+ "9ZPMMu": "",
"9a9+ww": "제목",
"9ctGsY": "기능 플래그가 업데이트되었습니다",
"9d/EEp": "제품 분석",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count}개 더 많은 특성",
"DZIViS": "서비스 사용량",
"DZY1mp": "소규모 비즈니스를 위한 모든 것",
+ "DcNXmv": "",
"Dfc9/a": "비밀번호를 기억하시나요?",
"Dg2v6W": "값 선택",
"DiWAe1": "다른 기간을 선택하거나 시스템에 추적 데이터가 있는지 확인하세요.",
@@ -384,9 +388,11 @@
"EmCZzy": "SPA 네비게이션 추적 비활성화됨",
"Ep4Hs9": "사이트 검색...",
"Eq9gxg": "너비 (px)",
+ "EsWFCh": "",
"Ev6SEF": "새 비밀번호",
"EwRIOm": "사용자",
"Ewavb9": "분석 데이터 수집을 계속하려면 구독 플랜을 선택하세요.",
+ "ExtTiK": "",
"F/6VqP": "서버",
"F1HScC": "URL 매개변수로 필터",
"F3XA9+": "목표 삭제",
@@ -542,9 +548,11 @@
"KfIZ6o": "플랫폼 전체에 표시되는 이름 업데이트",
"KiXNvz": "실행",
"KjXPXZ": "{count}개 세션",
+ "KkOM4O": "",
"KsWJL5": "국가 제외",
"KtC97P": "이탈 페이지",
"KzO2sB": "초기 페이지뷰 추적 활성화됨",
+ "L07wnh": "",
"L1FoVW": "조직 설정을 볼 권한이 없습니다.",
"L5X96Z": "추적에서 제외할 URL 패턴 (줄당 하나)",
"L8DzHm": "팀 이름이 필요합니다",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "요청 본문 (JSON)",
"M/h5TN": "노출수",
+ "MAmm3B": "",
"MGHdwe": "최근 5분 내 온라인 사용자 없음",
"MJ2jZQ": "합계",
"MKqZOD": "비밀번호 재설정 중...",
@@ -688,6 +697,7 @@
"RL7HbL": "{message}을(를) 잠금 해제하려면 조직 소유자에게 Pro 업그레이드를 요청하세요",
"RNCPOG": "가입",
"RQCAMr": "이름 업데이트에 실패했습니다",
+ "RVvz5q": "",
"RWQ/Ee": "복사 추적 활성화됨",
"RYG5QH": "사이트 이동",
"RZmPP6": "적용된 필터가 없습니다. \"필터 추가\"를 클릭하여 추가하세요.",
@@ -754,6 +764,7 @@
"TwyMau": "계정",
"TxjoW4": "{total} 중 {current} 페이지",
"U01dmA": "팀 편집",
+ "U0AIkl": "",
"U1H5v0": "도움이 필요하신가요? 리소스를 확인하세요:",
"U2stty": "연 ${annualPrice} 청구",
"U3UQfB": "의도적으로 미할당 트래픽을 원하지 않는 한, 전체 분배는 100%가 되어야 합니다.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "시간 창",
"iUmBQc": "단계 {number}",
"iX4wwR": "API 키 로드에 실패했습니다",
+ "iaaq06": "",
"iakHpf": "필터를 조정해 보세요",
"ibyol4": "알 수 없는 위치",
"ifZ5a3": "태그 검색...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Google Search Console 속성 선택",
"lnIbba": "IP 주소 추적 비활성화됨",
"lnaWo/": "지역",
+ "lp7ltY": "",
"lqNsts": "새 속성",
"lu/vDB": "다중 변형",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "세션 리플레이",
"mkp+qF": "추가 매개변수",
"mlMQEA": "주간 이메일 보고서 전송",
+ "n+tV1v": "",
"n02jRA": "강조 색상",
"n5Q9H0": "이벤트 이름",
"n5XyC0": "이 플래그는 서버 측에서 평가됩니다. 브라우저 스크립트 대신 백엔드에서 evaluate API를 호출하세요.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "월별 이벤트 한도에 근접하고 있습니다. 더 많은 용량이 필요하시면 지원팀에 문의해 주세요.",
"nnuMWB": "/blog/ 다음에 무엇이든 포함하는 경로",
"noZdV2": "삭제 중...",
+ "nvC97K": "",
"nwqt7T": "대시보드",
"nxIEYS": "최소 시간 (초)",
"nzStJU": "모든 리플레이 로드됨",
diff --git a/client/messages/pl.json b/client/messages/pl.json
index 0fdff5285..985ca8c86 100644
--- a/client/messages/pl.json
+++ b/client/messages/pl.json
@@ -27,6 +27,7 @@
"/CkSRc": "Lub kontynuuj przez e-mail",
"/EBXiO": "Ten członek ma dostęp do wszystkich witryn w organizacji.",
"/I2MZO": "Szczegóły sesji",
+ "/JNWvl": "",
"/OvJVm": "Pokaż mniej",
"/VCXg7": "Treść UTM",
"/Vcvr8": "Metryka Web Vitals do mierzenia wydajności strony.",
@@ -144,6 +145,7 @@
"4h8Ert": "Odtwarzanie sesji jest wyłączone",
"4l6vz1": "Kopiuj",
"4nfQk6": "Przechwytuj błędy JavaScript i wyjątki ze swojej strony",
+ "4v7I1t": "",
"5/6deG": "Wystąpił problem z pobieraniem lejków. Spróbuj ponownie później.",
"51jo4g": "Twój klucz API",
"52UMW3": "Cały czas",
@@ -260,6 +262,7 @@
"9VDOG/": "Dodaj co najmniej dwa warianty",
"9XUYQt": "Importuj",
"9YazHG": "Firma",
+ "9ZPMMu": "",
"9a9+ww": "Tytuł",
"9ctGsY": "Flaga funkcji zaktualizowana",
"9d/EEp": "Analityka produktowa",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} więcej cech",
"DZIViS": "Wykorzystanie usługi",
"DZY1mp": "Wszystko, czego potrzebujesz, aby rozpocząć jako mały biznes",
+ "DcNXmv": "",
"Dfc9/a": "Pamiętasz hasło?",
"Dg2v6W": "wybierz wartość",
"DiWAe1": "Spróbuj wybrać inny zakres czasu lub upewnij się, że masz dane śledzenia w systemie.",
@@ -384,9 +388,11 @@
"EmCZzy": "Śledzenie nawigacji SPA wyłączone",
"Ep4Hs9": "Szukaj witryn...",
"Eq9gxg": "Szerokość (px)",
+ "EsWFCh": "",
"Ev6SEF": "Nowe hasło",
"EwRIOm": "Użytkownik",
"Ewavb9": "Wybierz plan subskrypcji, aby kontynuować zbieranie danych analitycznych.",
+ "ExtTiK": "",
"F/6VqP": "Serwer",
"F1HScC": "Filtruj według parametru URL",
"F3XA9+": "Usuń cel",
@@ -542,9 +548,11 @@
"KfIZ6o": "Zaktualizuj swoją nazwę wyświetlaną na platformie",
"KiXNvz": "Uruchom",
"KjXPXZ": "{count} sesji",
+ "KkOM4O": "",
"KsWJL5": "Wykluczenia krajów",
"KtC97P": "Strony wyjściowe",
"KzO2sB": "Śledzenie początkowej odsłony włączone",
+ "L07wnh": "",
"L1FoVW": "Nie masz uprawnień do wyświetlania ustawień organizacji.",
"L5X96Z": "Wzorce URL do wykluczenia ze śledzenia (jeden na linię)",
"L8DzHm": "Nazwa zespołu jest wymagana",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Treść żądania (JSON)",
"M/h5TN": "Wyświetlenia",
+ "MAmm3B": "",
"MGHdwe": "Brak użytkowników online w ciągu ostatnich 5 minut",
"MJ2jZQ": "Razem",
"MKqZOD": "Resetowanie hasła...",
@@ -688,6 +697,7 @@
"RL7HbL": "Poproś właściciela organizacji o ulepszenie do Pro, aby odblokować {message}",
"RNCPOG": "Rejestracja",
"RQCAMr": "Nie udało się zaktualizować nazwy",
+ "RVvz5q": "",
"RWQ/Ee": "Śledzenie kopiowania włączone",
"RYG5QH": "Przenieś witrynę",
"RZmPP6": "Brak zastosowanych filtrów. Kliknij \"Dodaj filtr\", aby dodać.",
@@ -754,6 +764,7 @@
"TwyMau": "Konto",
"TxjoW4": "Strona {current} z {total}",
"U01dmA": "Edytuj zespół",
+ "U0AIkl": "",
"U1H5v0": "Potrzebujesz pomocy? Sprawdź nasze zasoby:",
"U2stty": "rozliczane rocznie za ${annualPrice}",
"U3UQfB": "Pełny podział powinien sumować się do 100%, chyba że celowo chcesz nieprzypisanego ruchu.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Okno czasowe",
"iUmBQc": "Krok {number}",
"iX4wwR": "Nie udało się załadować kluczy API",
+ "iaaq06": "",
"iakHpf": "Spróbuj dostosować filtry",
"ibyol4": "Nieznana lokalizacja",
"ifZ5a3": "Szukaj tagów...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Wybierz właściwość Google Search Console",
"lnIbba": "Śledzenie adresów IP wyłączone",
"lnaWo/": "Region",
+ "lp7ltY": "",
"lqNsts": "Nowa właściwość",
"lu/vDB": "Wiele wariantów",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Odtwarzanie sesji",
"mkp+qF": "Dodatkowe parametry",
"mlMQEA": "Wysyłaj tygodniowe raporty e-mail",
+ "n+tV1v": "",
"n02jRA": "Kolor akcentu",
"n5Q9H0": "Nazwa zdarzenia",
"n5XyC0": "Ta flaga jest oceniana po stronie serwera. Zamiast skryptu przeglądarki wywołaj API evaluate ze swojego backendu.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Zbliżasz się do miesięcznego limitu zdarzeń. Skontaktuj się z pomocą techniczną, jeśli potrzebujesz większej pojemności.",
"nnuMWB": "Ścieżki zawierające /blog/ i cokolwiek dalej",
"noZdV2": "Usuwanie...",
+ "nvC97K": "",
"nwqt7T": "Pulpity nawigacyjne",
"nxIEYS": "Min. czas trwania (s)",
"nzStJU": "Wszystkie odtwarzania załadowane",
diff --git a/client/messages/pt.json b/client/messages/pt.json
index b32740c51..b2e14c37b 100644
--- a/client/messages/pt.json
+++ b/client/messages/pt.json
@@ -27,6 +27,7 @@
"/CkSRc": "Ou continue com email",
"/EBXiO": "Este membro tem acesso a todos os sites da organização.",
"/I2MZO": "Detalhes da Sessão",
+ "/JNWvl": "",
"/OvJVm": "Mostrar menos",
"/VCXg7": "Conteúdo UTM",
"/Vcvr8": "Métrica Web Vitals para medir o desempenho do site.",
@@ -144,6 +145,7 @@
"4h8Ert": "Replay de Sessão Desativado",
"4l6vz1": "Copiar",
"4nfQk6": "Capture erros e exceções JavaScript do seu site",
+ "4v7I1t": "",
"5/6deG": "Houve um problema ao buscar os funis. Por favor, tente novamente mais tarde.",
"51jo4g": "Sua Chave de API",
"52UMW3": "Todo o Período",
@@ -260,6 +262,7 @@
"9VDOG/": "Adicione pelo menos duas variantes",
"9XUYQt": "Importar",
"9YazHG": "Empresa",
+ "9ZPMMu": "",
"9a9+ww": "Título",
"9ctGsY": "Feature flag atualizada",
"9d/EEp": "Análise de Produto",
@@ -350,6 +353,7 @@
"DWxa2O": "+{count} mais atributos",
"DZIViS": "Uso do Serviço",
"DZY1mp": "Tudo que você precisa para começar como pequena empresa",
+ "DcNXmv": "",
"Dfc9/a": "Lembra da sua senha?",
"Dg2v6W": "escolher valor",
"DiWAe1": "Tente selecionar um intervalo de tempo diferente ou certifique-se de que há dados de rastreamento no sistema.",
@@ -384,9 +388,11 @@
"EmCZzy": "Rastreamento de navegação SPA desativado",
"Ep4Hs9": "Pesquisar sites...",
"Eq9gxg": "Largura (px)",
+ "EsWFCh": "",
"Ev6SEF": "Nova Senha",
"EwRIOm": "Usuário",
"Ewavb9": "Escolha um plano de assinatura para continuar coletando dados de análise.",
+ "ExtTiK": "",
"F/6VqP": "Servidor",
"F1HScC": "Filtrar por parâmetro de URL",
"F3XA9+": "Excluir Meta",
@@ -542,9 +548,11 @@
"KfIZ6o": "Atualize seu nome exibido na plataforma",
"KiXNvz": "Executar",
"KjXPXZ": "{count} sessões",
+ "KkOM4O": "",
"KsWJL5": "Exclusões de País",
"KtC97P": "Páginas de Saída",
"KzO2sB": "Rastreamento de visualização de página inicial ativado",
+ "L07wnh": "",
"L1FoVW": "Você não tem permissão para ver as configurações da organização.",
"L5X96Z": "Padrões de URL para excluir do rastreamento (um por linha)",
"L8DzHm": "Nome do time é obrigatório",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Corpo da Requisição (JSON)",
"M/h5TN": "Impressões",
+ "MAmm3B": "",
"MGHdwe": "Nenhum usuário online nos últimos 5 minutos",
"MJ2jZQ": "Total",
"MKqZOD": "Redefinindo senha...",
@@ -688,6 +697,7 @@
"RL7HbL": "Peça ao proprietário da sua organização para atualizar para Pro para desbloquear {message}",
"RNCPOG": "Cadastro",
"RQCAMr": "Falha ao atualizar nome",
+ "RVvz5q": "",
"RWQ/Ee": "Rastreamento de cópia ativado",
"RYG5QH": "Mover site",
"RZmPP6": "Nenhum filtro aplicado. Clique em \"Adicionar Filtro\" para adicionar um.",
@@ -754,6 +764,7 @@
"TwyMau": "Conta",
"TxjoW4": "Página {current} de {total}",
"U01dmA": "Editar time",
+ "U0AIkl": "",
"U1H5v0": "Precisa de ajuda? Confira nossos recursos:",
"U2stty": "cobrado anualmente a ${annualPrice}",
"U3UQfB": "Uma divisão completa deve somar 100 por cento, a menos que você queira intencionalmente tráfego não atribuído.",
@@ -1077,6 +1088,7 @@
"iUdoAt": "Janela de Tempo",
"iUmBQc": "Etapa {number}",
"iX4wwR": "Falha ao carregar chaves de API",
+ "iaaq06": "",
"iakHpf": "Tente ajustar seus filtros",
"ibyol4": "Localização desconhecida",
"ifZ5a3": "Pesquisar tags...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Selecionar Propriedade do Google Search Console",
"lnIbba": "Rastreamento de endereço IP desativado",
"lnaWo/": "Região",
+ "lp7ltY": "",
"lqNsts": "Nova Propriedade",
"lu/vDB": "Múltiplas variantes",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Replay de Sessão",
"mkp+qF": "Parâmetros Adicionais",
"mlMQEA": "Enviar Relatórios Semanais por Email",
+ "n+tV1v": "",
"n02jRA": "Cor de destaque",
"n5Q9H0": "Nome do Evento",
"n5XyC0": "Esta flag é avaliada no servidor. Chame a API de avaliação do seu backend em vez do script do navegador.",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Você está se aproximando do seu limite mensal de eventos. Por favor, entre em contato com o suporte se precisar de mais capacidade.",
"nnuMWB": "Caminhos contendo /blog/ seguido de qualquer coisa",
"noZdV2": "Excluindo...",
+ "nvC97K": "",
"nwqt7T": "Painéis",
"nxIEYS": "Mín. duração (s)",
"nzStJU": "Todos os replays carregados",
diff --git a/client/messages/uk.json b/client/messages/uk.json
index 908251c75..03ed096ca 100644
--- a/client/messages/uk.json
+++ b/client/messages/uk.json
@@ -27,6 +27,7 @@
"/CkSRc": "Або продовжити через email",
"/EBXiO": "Цей учасник має доступ до всіх сайтів в організації.",
"/I2MZO": "Деталі сеансу",
+ "/JNWvl": "",
"/OvJVm": "",
"/VCXg7": "Контент UTM",
"/Vcvr8": "Метрика Web Vitals для вимірювання продуктивності вебсайту.",
@@ -144,6 +145,7 @@
"4h8Ert": "Відтворення сеансів вимкнено",
"4l6vz1": "Копіювання",
"4nfQk6": "Фіксуйте помилки JavaScript та винятки з вашого сайту",
+ "4v7I1t": "",
"5/6deG": "Виникла проблема під час отримання воронок. Будь ласка, спробуйте пізніше.",
"51jo4g": "Ваш API-ключ",
"52UMW3": "За весь час",
@@ -260,6 +262,7 @@
"9VDOG/": "",
"9XUYQt": "Імпорт",
"9YazHG": "",
+ "9ZPMMu": "",
"9a9+ww": "",
"9ctGsY": "",
"9d/EEp": "Продуктова аналітика",
@@ -350,6 +353,7 @@
"DWxa2O": "ще +{count} ознак",
"DZIViS": "Використання сервісу",
"DZY1mp": "Усе необхідне для початку роботи малого бізнесу",
+ "DcNXmv": "",
"Dfc9/a": "Згадали свій пароль?",
"Dg2v6W": "",
"DiWAe1": "Спробуйте вибрати інший часовий діапазон або переконайтеся, що в системі є дані відстеження.",
@@ -384,9 +388,11 @@
"EmCZzy": "Відстеження навігації SPA вимкнено",
"Ep4Hs9": "",
"Eq9gxg": "",
+ "EsWFCh": "",
"Ev6SEF": "Новий пароль",
"EwRIOm": "Користувач",
"Ewavb9": "Виберіть план підписки, щоб продовжити збирати аналітичні дані.",
+ "ExtTiK": "",
"F/6VqP": "",
"F1HScC": "Фільтрувати за параметром URL",
"F3XA9+": "Видалити ціль",
@@ -542,9 +548,11 @@
"KfIZ6o": "Оновіть своє ім'я, яке відображатиметься на платформі",
"KiXNvz": "Запустити",
"KjXPXZ": "{count} сеансів",
+ "KkOM4O": "",
"KsWJL5": "Винятки країн",
"KtC97P": "Сторінки виходу",
"KzO2sB": "Відстеження початкового перегляду сторінки увімкнено",
+ "L07wnh": "",
"L1FoVW": "У вас немає дозволу на перегляд налаштувань організації.",
"L5X96Z": "Шаблони URL, які потрібно виключити з відстеження (по одному в рядку)",
"L8DzHm": "Назва команди обов'язкова",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "Тіло запиту (JSON)",
"M/h5TN": "Покази",
+ "MAmm3B": "",
"MGHdwe": "Немає користувачів онлайн за останні 5 хвилин",
"MJ2jZQ": "Усього",
"MKqZOD": "Скидання пароля...",
@@ -688,6 +697,7 @@
"RL7HbL": "Попросіть власника організації перейти на план Pro, щоб розблокувати {message}",
"RNCPOG": "Реєстрація",
"RQCAMr": "Не вдалося оновити ім'я",
+ "RVvz5q": "",
"RWQ/Ee": "Відстеження копіювання увімкнено",
"RYG5QH": "",
"RZmPP6": "Фільтри не застосовано. Натисніть \"Додати фільтр\", щоб додати його.",
@@ -754,6 +764,7 @@
"TwyMau": "Акаунт",
"TxjoW4": "Сторінка {current} з {total}",
"U01dmA": "Редагувати команду",
+ "U0AIkl": "",
"U1H5v0": "Потрібна допомога? Перегляньте наші ресурси:",
"U2stty": "рахунок на ${annualPrice} виставляється щорічно",
"U3UQfB": "",
@@ -1077,6 +1088,7 @@
"iUdoAt": "",
"iUmBQc": "Крок {number}",
"iX4wwR": "Не вдалося завантажити API-ключі",
+ "iaaq06": "",
"iakHpf": "",
"ibyol4": "Невідома локація",
"ifZ5a3": "Шукати теги...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "Виберіть ресурс Google Search Console",
"lnIbba": "Відстеження IP-адреси вимкнено",
"lnaWo/": "Регіон",
+ "lp7ltY": "",
"lqNsts": "Нова властивість",
"lu/vDB": "",
"luhCIe": "IP-адреса:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "Відтворення сеансів",
"mkp+qF": "Додаткові параметри",
"mlMQEA": "Надсилати щотижневі звіти на email",
+ "n+tV1v": "",
"n02jRA": "",
"n5Q9H0": "Назва події",
"n5XyC0": "",
@@ -1214,6 +1228,7 @@
"ni0MP6": "Ви наближаєтеся до свого місячного ліміту подій. Будь ласка, зверніться до служби підтримки, якщо вам потрібно більше потужностей.",
"nnuMWB": "Шляхи, що містять /blog/, після якого йде будь-що",
"noZdV2": "Видалення...",
+ "nvC97K": "",
"nwqt7T": "",
"nxIEYS": "Мін. тривалість (с)",
"nzStJU": "Усі відтворення завантажено",
diff --git a/client/messages/zh.json b/client/messages/zh.json
index dd700c276..ab1780ad9 100644
--- a/client/messages/zh.json
+++ b/client/messages/zh.json
@@ -27,6 +27,7 @@
"/CkSRc": "或者继续使用电子邮件",
"/EBXiO": "此成员可以访问组织中的所有站点。",
"/I2MZO": "会话详情",
+ "/JNWvl": "",
"/OvJVm": "显示更少",
"/VCXg7": "UTM 内容",
"/Vcvr8": "用于衡量网站性能的 Web Vitals 指标。",
@@ -144,6 +145,7 @@
"4h8Ert": "会话回放已禁用",
"4l6vz1": "复制",
"4nfQk6": "捕获网站中的 JavaScript 错误和异常",
+ "4v7I1t": "",
"5/6deG": "获取漏斗时出现问题。请稍后重试。",
"51jo4g": "您的 API 密钥",
"52UMW3": "所有时间",
@@ -260,6 +262,7 @@
"9VDOG/": "至少添加两个变体",
"9XUYQt": "导入",
"9YazHG": "公司",
+ "9ZPMMu": "",
"9a9+ww": "标题",
"9ctGsY": "功能标志已更新",
"9d/EEp": "产品分析",
@@ -350,6 +353,7 @@
"DWxa2O": "还有 {count} 个特征",
"DZIViS": "服务使用情况",
"DZY1mp": "作为小型企业入门所需的一切",
+ "DcNXmv": "",
"Dfc9/a": "还记得密码吗?",
"Dg2v6W": "选择值",
"DiWAe1": "尝试选择不同的时间范围,或确保系统中有跟踪数据。",
@@ -384,9 +388,11 @@
"EmCZzy": "SPA 导航跟踪已禁用",
"Ep4Hs9": "搜索站点...",
"Eq9gxg": "宽度 (像素)",
+ "EsWFCh": "",
"Ev6SEF": "新密码",
"EwRIOm": "用户",
"Ewavb9": "选择一个订阅计划以继续收集分析数据。",
+ "ExtTiK": "",
"F/6VqP": "服务器",
"F1HScC": "按 URL 参数过滤",
"F3XA9+": "删除目标",
@@ -542,9 +548,11 @@
"KfIZ6o": "更新在平台上显示的姓名",
"KiXNvz": "运行",
"KjXPXZ": "{count} 个会话",
+ "KkOM4O": "",
"KsWJL5": "国家/地区排除",
"KtC97P": "退出页面",
"KzO2sB": "初始页面浏览跟踪已启用",
+ "L07wnh": "",
"L1FoVW": "您没有权限查看组织设置。",
"L5X96Z": "要从跟踪中排除的 URL 模式(每行一个)",
"L8DzHm": "团队名称不能为空",
@@ -570,6 +578,7 @@
"LzrJWg": "Reddit",
"M+jZJ6": "请求体 (JSON)",
"M/h5TN": "展示次数",
+ "MAmm3B": "",
"MGHdwe": "过去 5 分钟内没有在线用户",
"MJ2jZQ": "总计",
"MKqZOD": "正在重置密码...",
@@ -688,6 +697,7 @@
"RL7HbL": "请求您的组织所有者升级到 Pro 即可解锁 {message}",
"RNCPOG": "注册",
"RQCAMr": "更新姓名失败",
+ "RVvz5q": "",
"RWQ/Ee": "复制追踪已启用",
"RYG5QH": "移动站点",
"RZmPP6": "未应用任何过滤器。点击“添加过滤器”来添加。",
@@ -754,6 +764,7 @@
"TwyMau": "帐户",
"TxjoW4": "第 {current} 页,共 {total} 页",
"U01dmA": "编辑团队",
+ "U0AIkl": "",
"U1H5v0": "需要帮助?查看我们的资源:",
"U2stty": "按年计费,每年 ${annualPrice}",
"U3UQfB": "完整分配应合计为 100%,除非您有意保留未分配流量。",
@@ -1077,6 +1088,7 @@
"iUdoAt": "时间窗口",
"iUmBQc": "步骤 {number}",
"iX4wwR": "加载 API 密钥失败",
+ "iaaq06": "",
"iakHpf": "尝试调整筛选条件",
"ibyol4": "未知位置",
"ifZ5a3": "搜索标签...",
@@ -1168,6 +1180,7 @@
"lmjFSA": "选择 Google Search Console 属性",
"lnIbba": "IP 地址跟踪已禁用",
"lnaWo/": "地区",
+ "lp7ltY": "",
"lqNsts": "新属性",
"lu/vDB": "多变量",
"luhCIe": "IP:",
@@ -1195,6 +1208,7 @@
"mhmZ+P": "会话回放",
"mkp+qF": "其他参数",
"mlMQEA": "发送每周电子邮件报告",
+ "n+tV1v": "",
"n02jRA": "强调色",
"n5Q9H0": "事件名称",
"n5XyC0": "此标志在服务器端评估。请从后端调用评估 API,而非浏览器脚本。",
@@ -1214,6 +1228,7 @@
"ni0MP6": "您正在接近每月的事件限制。如果您需要更多容量,请联系支持。",
"nnuMWB": "包含 /blog/ 后接任意内容的路径",
"noZdV2": "正在删除...",
+ "nvC97K": "",
"nwqt7T": "仪表板",
"nxIEYS": "最短时长 (秒)",
"nzStJU": "所有回放已加载",
diff --git a/client/src/api/admin/endpoints/exclusions.ts b/client/src/api/admin/endpoints/exclusions.ts
new file mode 100644
index 000000000..a2ca23d4f
--- /dev/null
+++ b/client/src/api/admin/endpoints/exclusions.ts
@@ -0,0 +1,62 @@
+import { authedFetch } from "../../utils";
+import { updateSiteConfig } from "./sites";
+
+export interface ExcludedPathsResponse {
+ success: boolean;
+ excludedPaths: string[];
+ error?: string;
+}
+
+export interface ExcludedHostnamesResponse {
+ success: boolean;
+ excludedHostnames: string[];
+ error?: string;
+}
+
+export interface ExcludedUserAgentsResponse {
+ success: boolean;
+ excludedUserAgents: string[];
+ error?: string;
+}
+
+export interface UpdateExcludedPathsRequest {
+ siteId: number;
+ excludedPaths: string[];
+}
+
+export interface UpdateExcludedHostnamesRequest {
+ siteId: number;
+ excludedHostnames: string[];
+}
+
+export interface UpdateExcludedUserAgentsRequest {
+ siteId: number;
+ excludedUserAgents: string[];
+}
+
+// Excluded paths
+export const fetchExcludedPaths = async (siteId: string): Promise<ExcludedPathsResponse> => {
+ return await authedFetch<ExcludedPathsResponse>(`/sites/${siteId}/excluded-paths`);
+};
+
+export const updateExcludedPaths = async (siteId: number, excludedPaths: string[]): Promise<void> => {
+ await updateSiteConfig(siteId, { excludedPaths });
+};
+
+// Excluded hostnames
+export const fetchExcludedHostnames = async (siteId: string): Promise<ExcludedHostnamesResponse> => {
+ return await authedFetch<ExcludedHostnamesResponse>(`/sites/${siteId}/excluded-hostnames`);
+};
+
+export const updateExcludedHostnames = async (siteId: number, excludedHostnames: string[]): Promise<void> => {
+ await updateSiteConfig(siteId, { excludedHostnames });
+};
+
+// Excluded user agents
+export const fetchExcludedUserAgents = async (siteId: string): Promise<ExcludedUserAgentsResponse> => {
+ return await authedFetch<ExcludedUserAgentsResponse>(`/sites/${siteId}/excluded-user-agents`);
+};
+
+export const updateExcludedUserAgents = async (siteId: number, excludedUserAgents: string[]): Promise<void> => {
+ await updateSiteConfig(siteId, { excludedUserAgents });
+};
diff --git a/client/src/api/admin/endpoints/index.ts b/client/src/api/admin/endpoints/index.ts
index b1e02be13..da47a9be7 100644
--- a/client/src/api/admin/endpoints/index.ts
+++ b/client/src/api/admin/endpoints/index.ts
@@ -57,6 +57,24 @@ export type {
UpdateExcludedCountriesResponse,
} from "./excludedCountries";
+// Excluded Paths / Hostnames / User Agents endpoints
+export {
+ fetchExcludedPaths,
+ updateExcludedPaths,
+ fetchExcludedHostnames,
+ updateExcludedHostnames,
+ fetchExcludedUserAgents,
+ updateExcludedUserAgents,
+} from "./exclusions";
+export type {
+ ExcludedPathsResponse,
+ ExcludedHostnamesResponse,
+ ExcludedUserAgentsResponse,
+ UpdateExcludedPathsRequest,
+ UpdateExcludedHostnamesRequest,
+ UpdateExcludedUserAgentsRequest,
+} from "./exclusions";
+
// Account Settings endpoints
export { updateAccountSettings } from "./accountSettings";
export type {
diff --git a/client/src/api/admin/endpoints/sites.ts b/client/src/api/admin/endpoints/sites.ts
index 645212f1d..1685d3f3e 100644
--- a/client/src/api/admin/endpoints/sites.ts
+++ b/client/src/api/admin/endpoints/sites.ts
@@ -126,6 +126,9 @@ export function updateSiteConfig(
blockBots?: boolean;
excludedIPs?: string[];
excludedCountries?: string[];
+ excludedPaths?: string[];
+ excludedHostnames?: string[];
+ excludedUserAgents?: string[];
sessionReplay?: boolean;
webVitals?: boolean;
trackErrors?: boolean;
diff --git a/client/src/api/admin/hooks/useExclusions.ts b/client/src/api/admin/hooks/useExclusions.ts
new file mode 100644
index 000000000..c3d5032c5
--- /dev/null
+++ b/client/src/api/admin/hooks/useExclusions.ts
@@ -0,0 +1,82 @@
+import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
+import { toast } from "@/components/ui/sonner";
+import {
+ fetchExcludedPaths,
+ updateExcludedPaths,
+ fetchExcludedHostnames,
+ updateExcludedHostnames,
+ fetchExcludedUserAgents,
+ updateExcludedUserAgents,
+} from "../endpoints";
+
+// Excluded paths
+export const useGetExcludedPaths = (siteId: number) => {
+ return useQuery({
+ queryKey: ["excludedPaths", siteId],
+ queryFn: () => fetchExcludedPaths(siteId.toString()),
+ enabled: !!siteId,
+ });
+};
+
+export const useUpdateExcludedPaths = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<void, Error, { siteId: number; excludedPaths: string[] }>({
+ mutationFn: ({ siteId, excludedPaths }) => updateExcludedPaths(siteId, excludedPaths),
+ onSuccess: (_, variables) => {
+ toast.success("Excluded paths updated successfully");
+ queryClient.invalidateQueries({ queryKey: ["excludedPaths", variables.siteId] });
+ },
+ onError: error => {
+ toast.error(error.message || "Failed to update excluded paths");
+ },
+ });
+};
+
+// Excluded hostnames
+export const useGetExcludedHostnames = (siteId: number) => {
+ return useQuery({
+ queryKey: ["excludedHostnames", siteId],
+ queryFn: () => fetchExcludedHostnames(siteId.toString()),
+ enabled: !!siteId,
+ });
+};
+
+export const useUpdateExcludedHostnames = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<void, Error, { siteId: number; excludedHostnames: string[] }>({
+ mutationFn: ({ siteId, excludedHostnames }) => updateExcludedHostnames(siteId, excludedHostnames),
+ onSuccess: (_, variables) => {
+ toast.success("Excluded hostnames updated successfully");
+ queryClient.invalidateQueries({ queryKey: ["excludedHostnames", variables.siteId] });
+ },
+ onError: error => {
+ toast.error(error.message || "Failed to update excluded hostnames");
+ },
+ });
+};
+
+// Excluded user agents
+export const useGetExcludedUserAgents = (siteId: number) => {
+ return useQuery({
+ queryKey: ["excludedUserAgents", siteId],
+ queryFn: () => fetchExcludedUserAgents(siteId.toString()),
+ enabled: !!siteId,
+ });
+};
+
+export const useUpdateExcludedUserAgents = () => {
+ const queryClient = useQueryClient();
+
+ return useMutation<void, Error, { siteId: number; excludedUserAgents: string[] }>({
+ mutationFn: ({ siteId, excludedUserAgents }) => updateExcludedUserAgents(siteId, excludedUserAgents),
+ onSuccess: (_, variables) => {
+ toast.success("Excluded user agents updated successfully");
+ queryClient.invalidateQueries({ queryKey: ["excludedUserAgents", variables.siteId] });
+ },
+ onError: error => {
+ toast.error(error.message || "Failed to update excluded user agents");
+ },
+ });
+};
diff --git a/client/src/components/SiteSettings/ExclusionsTab.tsx b/client/src/components/SiteSettings/ExclusionsTab.tsx
index 7ab656306..050c6baf0 100644
--- a/client/src/components/SiteSettings/ExclusionsTab.tsx
+++ b/client/src/components/SiteSettings/ExclusionsTab.tsx
@@ -1,7 +1,18 @@
"use client";
+import { useExtracted } from "next-intl";
+
+import {
+ useGetExcludedPaths,
+ useUpdateExcludedPaths,
+ useGetExcludedHostnames,
+ useUpdateExcludedHostnames,
+ useGetExcludedUserAgents,
+ useUpdateExcludedUserAgents,
+} from "@/api/admin/hooks/useExclusions";
import { IPExclusionManager } from "./IPExclusionManager";
import { CountryExclusionManager } from "./CountryExclusionManager";
+import { PatternExclusionManager } from "./PatternExclusionManager";
interface ExclusionsTabProps {
siteId: number;
@@ -9,10 +20,67 @@ interface ExclusionsTabProps {
}
export function ExclusionsTab({ siteId, disabled = false }: ExclusionsTabProps) {
+ const t = useExtracted();
+
+ const paths = useGetExcludedPaths(siteId);
+ const updatePaths = useUpdateExcludedPaths();
+ const hostnames = useGetExcludedHostnames(siteId);
+ const updateHostnames = useUpdateExcludedHostnames();
+ const userAgents = useGetExcludedUserAgents(siteId);
+ const updateUserAgents = useUpdateExcludedUserAgents();
+
return (
<div className="space-y-6">
<IPExclusionManager siteId={siteId} disabled={disabled} />
<CountryExclusionManager siteId={siteId} disabled={disabled} />
+
+ <PatternExclusionManager
+ label={t("Path Exclusions")}
+ description={t(
+ "Exclude traffic to specific pages. Use * as a wildcard (e.g., /admin/* or /preview). Matching is case-insensitive."
+ )}
+ placeholder="e.g., /admin/* or /preview"
+ addLabel={t("Add Path")}
+ loadingLabel={t("Loading path exclusions...")}
+ maxLabel={t("Maximum 100 path exclusions allowed")}
+ values={paths.data?.excludedPaths}
+ isLoading={paths.isLoading}
+ isSaving={updatePaths.isPending}
+ onSave={excludedPaths => updatePaths.mutateAsync({ siteId, excludedPaths })}
+ disabled={disabled}
+ />
+
+ <PatternExclusionManager
+ label={t("Hostname Exclusions")}
+ description={t(
+ "Exclude traffic from specific hostnames such as staging or preview domains. Use * as a wildcard (e.g., localhost or *.vercel.app). Matching is case-insensitive."
+ )}
+ placeholder="e.g., localhost or *.vercel.app"
+ addLabel={t("Add Hostname")}
+ loadingLabel={t("Loading hostname exclusions...")}
+ maxLabel={t("Maximum 100 hostname exclusions allowed")}
+ values={hostnames.data?.excludedHostnames}
+ isLoading={hostnames.isLoading}
+ isSaving={updateHostnames.isPending}
+ onSave={excludedHostnames => updateHostnames.mutateAsync({ siteId, excludedHostnames })}
+ disabled={disabled}
+ />
+
+ <PatternExclusionManager
+ label={t("User Agent Exclusions")}
+ description={t(
+ "Exclude traffic from user agents containing any of these terms. Matching is a case-insensitive substring (e.g., HeadlessChrome)."
+ )}
+ placeholder="e.g., HeadlessChrome"
+ addLabel={t("Add User Agent")}
+ loadingLabel={t("Loading user agent exclusions...")}
+ maxLabel={t("Maximum 100 user agent exclusions allowed")}
+ values={userAgents.data?.excludedUserAgents}
+ isLoading={userAgents.isLoading}
+ isSaving={updateUserAgents.isPending}
+ onSave={excludedUserAgents => updateUserAgents.mutateAsync({ siteId, excludedUserAgents })}
+ disabled={disabled}
+ />
</div>
);
}
diff --git a/client/src/components/SiteSettings/PatternExclusionManager.tsx b/client/src/components/SiteSettings/PatternExclusionManager.tsx
new file mode 100644
index 000000000..5c6a20932
--- /dev/null
+++ b/client/src/components/SiteSettings/PatternExclusionManager.tsx
@@ -0,0 +1,155 @@
+"use client";
+
+import { Minus, Plus } from "lucide-react";
+import { useExtracted } from "next-intl";
+import React, { useState } from "react";
+
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import { Label } from "@/components/ui/label";
+
+interface PatternExclusionManagerProps {
+ label: string;
+ description: string;
+ placeholder: string;
+ addLabel: string;
+ loadingLabel: string;
+ maxLabel: string;
+ values: string[] | undefined;
+ isLoading: boolean;
+ isSaving: boolean;
+ onSave: (values: string[]) => Promise<unknown>;
+ disabled?: boolean;
+ max?: number;
+}
+
+/**
+ * Generic list editor for string-pattern exclusions (paths, hostnames, user agents).
+ * Owns the unsaved-changes editing state; the parent wires up the fetch/update hooks.
+ */
+export function PatternExclusionManager({
+ label,
+ description,
+ placeholder,
+ addLabel,
+ loadingLabel,
+ maxLabel,
+ values,
+ isLoading,
+ isSaving,
+ onSave,
+ disabled = false,
+ max = 100,
+}: PatternExclusionManagerProps) {
+ const t = useExtracted();
+ const [list, setList] = useState<string[]>([]);
+ const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
+
+ React.useEffect(() => {
+ if (values) {
+ setList(values.length > 0 ? values : [""]);
+ setHasUnsavedChanges(false);
+ } else if (!isLoading) {
+ setList([""]);
+ }
+ }, [values, isLoading]);
+
+ const addField = () => {
+ setList([...list, ""]);
+ setHasUnsavedChanges(true);
+ };
+
+ const removeField = (index: number) => {
+ if (list.length > 1) {
+ setList(list.filter((_, i) => i !== index));
+ setHasUnsavedChanges(true);
+ }
+ };
+
+ const updateField = (index: number, value: string) => {
+ const newList = [...list];
+ newList[index] = value;
+ setList(newList);
+ setHasUnsavedChanges(true);
+ };
+
+ const handleSave = async () => {
+ const filtered = list.map(v => v.trim()).filter(v => v !== "");
+ try {
+ await onSave(filtered);
+ setHasUnsavedChanges(false);
+ } catch {
+ // Error handling is done in the mutation
+ }
+ };
+
+ const handleReset = () => {
+ setList(values && values.length > 0 ? values : [""]);
+ setHasUnsavedChanges(false);
+ };
+
+ if (isLoading) {
+ return <div className="text-sm text-muted-foreground">{loadingLabel}</div>;
+ }
+
+ return (
+ <div className="space-y-4">
+ <div>
+ <Label className="text-sm font-medium text-foreground block">{label}</Label>
+ <p className="text-xs text-muted-foreground mt-1">{description}</p>
+ </div>
+
+ <div className="space-y-2">
+ {list.map((value, index) => (
+ <div key={index} className="flex items-center space-x-2">
+ <Input
+ value={value}
+ onChange={e => updateField(index, e.target.value)}
+ placeholder={placeholder}
+ disabled={disabled}
+ />
+ {list.length > 1 && (
+ <Button
+ type="button"
+ variant="outline"
+ size="icon"
+ onClick={() => removeField(index)}
+ disabled={disabled}
+ className="shrink-0"
+ >
+ <Minus className="h-4 w-4" />
+ </Button>
+ )}
+ </div>
+ ))}
+ </div>
+
+ <div className="flex items-center space-x-2">
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={addField}
+ disabled={disabled || list.length >= max}
+ className="flex items-center space-x-1"
+ >
+ <Plus className="h-4 w-4" />
+ <span>{addLabel}</span>
+ </Button>
+
+ {list.length >= max && <span className="text-xs text-muted-foreground">{maxLabel}</span>}
+ </div>
+
+ {hasUnsavedChanges && (
+ <div className="flex items-center space-x-2 pt-2">
+ <Button onClick={handleSave} disabled={disabled || isSaving} size="sm">
+ {isSaving ? t("Saving...") : t("Save Changes")}
+ </Button>
+ <Button variant="outline" onClick={handleReset} disabled={disabled || isSaving} size="sm">
+ {t("Reset")}
+ </Button>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/server/drizzle/0009_ambiguous_gabe_jones.sql b/server/drizzle/0009_ambiguous_gabe_jones.sql
new file mode 100644
index 000000000..0d58f32ab
--- /dev/null
+++ b/server/drizzle/0009_ambiguous_gabe_jones.sql
@@ -0,0 +1,3 @@
+ALTER TABLE "sites" ADD COLUMN IF NOT EXISTS "excluded_paths" jsonb DEFAULT '[]'::jsonb;--> statement-breakpoint
+ALTER TABLE "sites" ADD COLUMN IF NOT EXISTS "excluded_hostnames" jsonb DEFAULT '[]'::jsonb;--> statement-breakpoint
+ALTER TABLE "sites" ADD COLUMN IF NOT EXISTS "excluded_user_agents" jsonb DEFAULT '[]'::jsonb;
diff --git a/server/drizzle/meta/0009_snapshot.json b/server/drizzle/meta/0009_snapshot.json
new file mode 100644
index 000000000..2977db4c5
--- /dev/null
+++ b/server/drizzle/meta/0009_snapshot.json
@@ -0,0 +1,3372 @@
+{
+ "id": "d7780f73-1071-4c51-a9dc-32eceb0d9c08",
+ "prevId": "5a2ec6d6-04e4-4b23-82f6-093ffb644cd4",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.account": {
+ "name": "account",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "accountId": {
+ "name": "accountId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "providerId": {
+ "name": "providerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "accessToken": {
+ "name": "accessToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshToken": {
+ "name": "refreshToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "idToken": {
+ "name": "idToken",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "accessTokenExpiresAt": {
+ "name": "accessTokenExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refreshTokenExpiresAt": {
+ "name": "refreshTokenExpiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "scope": {
+ "name": "scope",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "account_userId_user_id_fk": {
+ "name": "account_userId_user_id_fk",
+ "tableFrom": "account",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.active_sessions": {
+ "name": "active_sessions",
+ "schema": "",
+ "columns": {
+ "session_id": {
+ "name": "session_id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start_time": {
+ "name": "start_time",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "last_activity": {
+ "name": "last_activity",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.agent_regions": {
+ "name": "agent_regions",
+ "schema": "",
+ "columns": {
+ "code": {
+ "name": "code",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "endpoint_url": {
+ "name": "endpoint_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "last_health_check": {
+ "name": "last_health_check",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "is_healthy": {
+ "name": "is_healthy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.apikey": {
+ "name": "apikey",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start": {
+ "name": "start",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "referenceId": {
+ "name": "referenceId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refillInterval": {
+ "name": "refillInterval",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "refillAmount": {
+ "name": "refillAmount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastRefillAt": {
+ "name": "lastRefillAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "rateLimitEnabled": {
+ "name": "rateLimitEnabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "rateLimitTimeWindow": {
+ "name": "rateLimitTimeWindow",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "rateLimitMax": {
+ "name": "rateLimitMax",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "requestCount": {
+ "name": "requestCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "remaining": {
+ "name": "remaining",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "lastRequest": {
+ "name": "lastRequest",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "configId": {
+ "name": "configId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "permissions": {
+ "name": "permissions",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "apikey_referenceId_user_id_fk": {
+ "name": "apikey_referenceId_user_id_fk",
+ "tableFrom": "apikey",
+ "tableTo": "user",
+ "columnsFrom": [
+ "referenceId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.cancellation_feedback": {
+ "name": "cancellation_feedback",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "reason": {
+ "name": "reason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "reason_details": {
+ "name": "reason_details",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "retention_offer_shown": {
+ "name": "retention_offer_shown",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "retention_offer_accepted": {
+ "name": "retention_offer_accepted",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "outcome": {
+ "name": "outcome",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "plan_name_at_cancellation": {
+ "name": "plan_name_at_cancellation",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "monthly_event_count_at_cancellation": {
+ "name": "monthly_event_count_at_cancellation",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.dashboards": {
+ "name": "dashboards",
+ "schema": "",
+ "columns": {
+ "dashboard_id": {
+ "name": "dashboard_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'{\"cards\":[]}'::jsonb"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "dashboards_site_id_sites_site_id_fk": {
+ "name": "dashboards_site_id_sites_site_id_fk",
+ "tableFrom": "dashboards",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "dashboards_user_id_user_id_fk": {
+ "name": "dashboards_user_id_user_id_fk",
+ "tableFrom": "dashboards",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.experiments": {
+ "name": "experiments",
+ "schema": "",
+ "columns": {
+ "experiment_id": {
+ "name": "experiment_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "feature_flag_id": {
+ "name": "feature_flag_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "primary_goal_id": {
+ "name": "primary_goal_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hypothesis": {
+ "name": "hypothesis",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'draft'"
+ },
+ "winning_variant": {
+ "name": "winning_variant",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "started_at": {
+ "name": "started_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "ended_at": {
+ "name": "ended_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "experiments_site_idx": {
+ "name": "experiments_site_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "experiments_feature_flag_idx": {
+ "name": "experiments_feature_flag_idx",
+ "columns": [
+ {
+ "expression": "feature_flag_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "experiments_primary_goal_idx": {
+ "name": "experiments_primary_goal_idx",
+ "columns": [
+ {
+ "expression": "primary_goal_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "experiments_site_id_sites_site_id_fk": {
+ "name": "experiments_site_id_sites_site_id_fk",
+ "tableFrom": "experiments",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "experiments_feature_flag_id_feature_flags_flag_id_fk": {
+ "name": "experiments_feature_flag_id_feature_flags_flag_id_fk",
+ "tableFrom": "experiments",
+ "tableTo": "feature_flags",
+ "columnsFrom": [
+ "feature_flag_id"
+ ],
+ "columnsTo": [
+ "flag_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "experiments_primary_goal_id_goals_goal_id_fk": {
+ "name": "experiments_primary_goal_id_goals_goal_id_fk",
+ "tableFrom": "experiments",
+ "tableTo": "goals",
+ "columnsFrom": [
+ "primary_goal_id"
+ ],
+ "columnsTo": [
+ "goal_id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "experiments_site_flag_unique": {
+ "name": "experiments_site_flag_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "site_id",
+ "feature_flag_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {
+ "experiments_status_check": {
+ "name": "experiments_status_check",
+ "value": "status IN ('draft', 'running', 'paused', 'completed')"
+ }
+ },
+ "isRLSEnabled": false
+ },
+ "public.feature_flags": {
+ "name": "feature_flags",
+ "schema": "",
+ "columns": {
+ "flag_id": {
+ "name": "flag_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "key": {
+ "name": "key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "runtime": {
+ "name": "runtime",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'client'"
+ },
+ "flag_type": {
+ "name": "flag_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'boolean'"
+ },
+ "payload": {
+ "name": "payload",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "variants": {
+ "name": "variants",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "rollout_percentage": {
+ "name": "rollout_percentage",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 100
+ },
+ "rules": {
+ "name": "rules",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "condition_sets": {
+ "name": "condition_sets",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "salt": {
+ "name": "salt",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "md5(random()::text || clock_timestamp()::text)"
+ },
+ "version": {
+ "name": "version",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 1
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "feature_flags_site_idx": {
+ "name": "feature_flags_site_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "feature_flags_site_id_sites_site_id_fk": {
+ "name": "feature_flags_site_id_sites_site_id_fk",
+ "tableFrom": "feature_flags",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "feature_flags_site_key_unique": {
+ "name": "feature_flags_site_key_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "site_id",
+ "key"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {
+ "feature_flags_rollout_check": {
+ "name": "feature_flags_rollout_check",
+ "value": "rollout_percentage >= 0 AND rollout_percentage <= 100"
+ },
+ "feature_flags_runtime_check": {
+ "name": "feature_flags_runtime_check",
+ "value": "runtime IN ('client', 'server', 'both')"
+ },
+ "feature_flags_type_check": {
+ "name": "feature_flags_type_check",
+ "value": "flag_type IN ('boolean', 'multivariate', 'remote_config')"
+ }
+ },
+ "isRLSEnabled": false
+ },
+ "public.funnels": {
+ "name": "funnels",
+ "schema": "",
+ "columns": {
+ "report_id": {
+ "name": "report_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "data": {
+ "name": "data",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "funnels_site_id_sites_site_id_fk": {
+ "name": "funnels_site_id_sites_site_id_fk",
+ "tableFrom": "funnels",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "funnels_user_id_user_id_fk": {
+ "name": "funnels_user_id_user_id_fk",
+ "tableFrom": "funnels",
+ "tableTo": "user",
+ "columnsFrom": [
+ "user_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.goals": {
+ "name": "goals",
+ "schema": "",
+ "columns": {
+ "goal_id": {
+ "name": "goal_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "goal_type": {
+ "name": "goal_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "goals_site_id_sites_site_id_fk": {
+ "name": "goals_site_id_sites_site_id_fk",
+ "tableFrom": "goals",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.gsc_connections": {
+ "name": "gsc_connections",
+ "schema": "",
+ "columns": {
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "access_token": {
+ "name": "access_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "refresh_token": {
+ "name": "refresh_token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expires_at": {
+ "name": "expires_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "gsc_property_url": {
+ "name": "gsc_property_url",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "gsc_connections_site_id_sites_site_id_fk": {
+ "name": "gsc_connections_site_id_sites_site_id_fk",
+ "tableFrom": "gsc_connections",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.import_status": {
+ "name": "import_status",
+ "schema": "",
+ "columns": {
+ "import_id": {
+ "name": "import_id",
+ "type": "uuid",
+ "primaryKey": true,
+ "notNull": true,
+ "default": "gen_random_uuid()"
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "platform": {
+ "name": "platform",
+ "type": "import_platform_enum",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "imported_events": {
+ "name": "imported_events",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "skipped_events": {
+ "name": "skipped_events",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "invalid_events": {
+ "name": "invalid_events",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true,
+ "default": 0
+ },
+ "started_at": {
+ "name": "started_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "completed_at": {
+ "name": "completed_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "import_status_site_id_sites_site_id_fk": {
+ "name": "import_status_site_id_sites_site_id_fk",
+ "tableFrom": "import_status",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "import_status_organization_id_organization_id_fk": {
+ "name": "import_status_organization_id_organization_id_fk",
+ "tableFrom": "import_status",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.invitation": {
+ "name": "invitation",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "inviterId": {
+ "name": "inviterId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "has_restricted_site_access": {
+ "name": "has_restricted_site_access",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ },
+ "site_ids": {
+ "name": "site_ids",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "teamId": {
+ "name": "teamId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "invitation_inviterId_user_id_fk": {
+ "name": "invitation_inviterId_user_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "user",
+ "columnsFrom": [
+ "inviterId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "invitation_organizationId_organization_id_fk": {
+ "name": "invitation_organizationId_organization_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "invitation_teamId_team_id_fk": {
+ "name": "invitation_teamId_team_id_fk",
+ "tableFrom": "invitation",
+ "tableTo": "team",
+ "columnsFrom": [
+ "teamId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member": {
+ "name": "member",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "has_restricted_site_access": {
+ "name": "has_restricted_site_access",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "member_organizationId_organization_id_fk": {
+ "name": "member_organizationId_organization_id_fk",
+ "tableFrom": "member",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "member_userId_user_id_fk": {
+ "name": "member_userId_user_id_fk",
+ "tableFrom": "member",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.member_site_access": {
+ "name": "member_site_access",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "member_id": {
+ "name": "member_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_by": {
+ "name": "created_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "member_site_access_member_idx": {
+ "name": "member_site_access_member_idx",
+ "columns": [
+ {
+ "expression": "member_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "member_site_access_site_idx": {
+ "name": "member_site_access_site_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "member_site_access_member_id_member_id_fk": {
+ "name": "member_site_access_member_id_member_id_fk",
+ "tableFrom": "member_site_access",
+ "tableTo": "member",
+ "columnsFrom": [
+ "member_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_site_access_site_id_sites_site_id_fk": {
+ "name": "member_site_access_site_id_sites_site_id_fk",
+ "tableFrom": "member_site_access",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "member_site_access_created_by_user_id_fk": {
+ "name": "member_site_access_created_by_user_id_fk",
+ "tableFrom": "member_site_access",
+ "tableTo": "user",
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "member_site_access_unique": {
+ "name": "member_site_access_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "member_id",
+ "site_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.notification_channels": {
+ "name": "notification_channels",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "config": {
+ "name": "config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "monitor_ids": {
+ "name": "monitor_ids",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "trigger_events": {
+ "name": "trigger_events",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[\"down\",\"recovery\"]'::jsonb"
+ },
+ "cooldown_minutes": {
+ "name": "cooldown_minutes",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 5
+ },
+ "last_notified_at": {
+ "name": "last_notified_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "created_by": {
+ "name": "created_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "notification_channels_organization_id_organization_id_fk": {
+ "name": "notification_channels_organization_id_organization_id_fk",
+ "tableFrom": "notification_channels",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "notification_channels_created_by_user_id_fk": {
+ "name": "notification_channels_created_by_user_id_fk",
+ "tableFrom": "notification_channels",
+ "tableTo": "user",
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.organization": {
+ "name": "organization",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "slug": {
+ "name": "slug",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "logo": {
+ "name": "logo",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "metadata": {
+ "name": "metadata",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "monthlyEventCount": {
+ "name": "monthlyEventCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "overMonthlyLimit": {
+ "name": "overMonthlyLimit",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "approachingLimitNotifiedPeriodStart": {
+ "name": "approachingLimitNotifiedPeriodStart",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "planOverride": {
+ "name": "planOverride",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "custom_plan": {
+ "name": "custom_plan",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "organization_slug_unique": {
+ "name": "organization_slug_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "slug"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.session": {
+ "name": "session",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "token": {
+ "name": "token",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "ipAddress": {
+ "name": "ipAddress",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userAgent": {
+ "name": "userAgent",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "impersonatedBy": {
+ "name": "impersonatedBy",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "activeOrganizationId": {
+ "name": "activeOrganizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "activeTeamId": {
+ "name": "activeTeamId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "session_userId_user_id_fk": {
+ "name": "session_userId_user_id_fk",
+ "tableFrom": "session",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "session_token_unique": {
+ "name": "session_token_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "token"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.sites": {
+ "name": "sites",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "type": {
+ "name": "type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "domain": {
+ "name": "domain",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "created_by": {
+ "name": "created_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "public": {
+ "name": "public",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "embed_enabled": {
+ "name": "embed_enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "saltUserIds": {
+ "name": "saltUserIds",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "blockBots": {
+ "name": "blockBots",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "default": true
+ },
+ "excluded_ips": {
+ "name": "excluded_ips",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "excluded_countries": {
+ "name": "excluded_countries",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "excluded_paths": {
+ "name": "excluded_paths",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "excluded_hostnames": {
+ "name": "excluded_hostnames",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "excluded_user_agents": {
+ "name": "excluded_user_agents",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ },
+ "sessionReplay": {
+ "name": "sessionReplay",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "webVitals": {
+ "name": "webVitals",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "trackErrors": {
+ "name": "trackErrors",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "trackOutbound": {
+ "name": "trackOutbound",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "trackUrlParams": {
+ "name": "trackUrlParams",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "trackInitialPageView": {
+ "name": "trackInitialPageView",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "trackSpaNavigation": {
+ "name": "trackSpaNavigation",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "trackIp": {
+ "name": "trackIp",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "trackButtonClicks": {
+ "name": "trackButtonClicks",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "trackCopy": {
+ "name": "trackCopy",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "trackFormInteractions": {
+ "name": "trackFormInteractions",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "api_key": {
+ "name": "api_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "private_link_key": {
+ "name": "private_link_key",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "tags": {
+ "name": "tags",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "sites_created_by_user_id_fk": {
+ "name": "sites_created_by_user_id_fk",
+ "tableFrom": "sites",
+ "tableTo": "user",
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "sites_organization_id_organization_id_fk": {
+ "name": "sites_organization_id_organization_id_fk",
+ "tableFrom": "sites",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {
+ "sites_type_check": {
+ "name": "sites_type_check",
+ "value": "\"sites\".\"type\" IS NULL OR \"sites\".\"type\" IN ('web', 'mobile')"
+ }
+ },
+ "isRLSEnabled": false
+ },
+ "public.team": {
+ "name": "team",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "organizationId": {
+ "name": "organizationId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "team_organizationId_organization_id_fk": {
+ "name": "team_organizationId_organization_id_fk",
+ "tableFrom": "team",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organizationId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.teamMember": {
+ "name": "teamMember",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "teamId": {
+ "name": "teamId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "userId": {
+ "name": "userId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "teamMember_teamId_team_id_fk": {
+ "name": "teamMember_teamId_team_id_fk",
+ "tableFrom": "teamMember",
+ "tableTo": "team",
+ "columnsFrom": [
+ "teamId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "teamMember_userId_user_id_fk": {
+ "name": "teamMember_userId_user_id_fk",
+ "tableFrom": "teamMember",
+ "tableTo": "user",
+ "columnsFrom": [
+ "userId"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.team_site_access": {
+ "name": "team_site_access",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "team_id": {
+ "name": "team_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "team_site_access_team_idx": {
+ "name": "team_site_access_team_idx",
+ "columns": [
+ {
+ "expression": "team_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "team_site_access_site_idx": {
+ "name": "team_site_access_site_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "team_site_access_team_id_team_id_fk": {
+ "name": "team_site_access_team_id_team_id_fk",
+ "tableFrom": "team_site_access",
+ "tableTo": "team",
+ "columnsFrom": [
+ "team_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "team_site_access_site_id_sites_site_id_fk": {
+ "name": "team_site_access_site_id_sites_site_id_fk",
+ "tableFrom": "team_site_access",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "team_site_access_unique": {
+ "name": "team_site_access_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "team_id",
+ "site_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.telemetry": {
+ "name": "telemetry",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "instance_id": {
+ "name": "instance_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "timestamp": {
+ "name": "timestamp",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "version": {
+ "name": "version",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "table_counts": {
+ "name": "table_counts",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "clickhouse_size_gb": {
+ "name": "clickhouse_size_gb",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.uptime_alert_history": {
+ "name": "uptime_alert_history",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "alert_id": {
+ "name": "alert_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "monitor_id": {
+ "name": "monitor_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "triggered_at": {
+ "name": "triggered_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "resolved_at": {
+ "name": "resolved_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "alert_data": {
+ "name": "alert_data",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "uptime_alert_history_alert_id_uptime_alerts_id_fk": {
+ "name": "uptime_alert_history_alert_id_uptime_alerts_id_fk",
+ "tableFrom": "uptime_alert_history",
+ "tableTo": "uptime_alerts",
+ "columnsFrom": [
+ "alert_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "uptime_alert_history_monitor_id_uptime_monitors_id_fk": {
+ "name": "uptime_alert_history_monitor_id_uptime_monitors_id_fk",
+ "tableFrom": "uptime_alert_history",
+ "tableTo": "uptime_monitors",
+ "columnsFrom": [
+ "monitor_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.uptime_alerts": {
+ "name": "uptime_alerts",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "monitor_id": {
+ "name": "monitor_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "alert_type": {
+ "name": "alert_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "alert_config": {
+ "name": "alert_config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "conditions": {
+ "name": "conditions",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "uptime_alerts_monitor_id_uptime_monitors_id_fk": {
+ "name": "uptime_alerts_monitor_id_uptime_monitors_id_fk",
+ "tableFrom": "uptime_alerts",
+ "tableTo": "uptime_monitors",
+ "columnsFrom": [
+ "monitor_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.uptime_incidents": {
+ "name": "uptime_incidents",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "monitor_id": {
+ "name": "monitor_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "region": {
+ "name": "region",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "start_time": {
+ "name": "start_time",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "end_time": {
+ "name": "end_time",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "status": {
+ "name": "status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'active'"
+ },
+ "acknowledged_by": {
+ "name": "acknowledged_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "acknowledged_at": {
+ "name": "acknowledged_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resolved_by": {
+ "name": "resolved_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "resolved_at": {
+ "name": "resolved_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_error": {
+ "name": "last_error",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "last_error_type": {
+ "name": "last_error_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "failure_count": {
+ "name": "failure_count",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 1
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "uptime_incidents_organization_id_organization_id_fk": {
+ "name": "uptime_incidents_organization_id_organization_id_fk",
+ "tableFrom": "uptime_incidents",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "uptime_incidents_monitor_id_uptime_monitors_id_fk": {
+ "name": "uptime_incidents_monitor_id_uptime_monitors_id_fk",
+ "tableFrom": "uptime_incidents",
+ "tableTo": "uptime_monitors",
+ "columnsFrom": [
+ "monitor_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "uptime_incidents_acknowledged_by_user_id_fk": {
+ "name": "uptime_incidents_acknowledged_by_user_id_fk",
+ "tableFrom": "uptime_incidents",
+ "tableTo": "user",
+ "columnsFrom": [
+ "acknowledged_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "uptime_incidents_resolved_by_user_id_fk": {
+ "name": "uptime_incidents_resolved_by_user_id_fk",
+ "tableFrom": "uptime_incidents",
+ "tableTo": "user",
+ "columnsFrom": [
+ "resolved_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.uptime_monitor_status": {
+ "name": "uptime_monitor_status",
+ "schema": "",
+ "columns": {
+ "monitor_id": {
+ "name": "monitor_id",
+ "type": "integer",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "last_checked_at": {
+ "name": "last_checked_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "next_check_at": {
+ "name": "next_check_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "current_status": {
+ "name": "current_status",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'unknown'"
+ },
+ "consecutive_failures": {
+ "name": "consecutive_failures",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "consecutive_successes": {
+ "name": "consecutive_successes",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "uptime_percentage_24h": {
+ "name": "uptime_percentage_24h",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "uptime_percentage_7d": {
+ "name": "uptime_percentage_7d",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "uptime_percentage_30d": {
+ "name": "uptime_percentage_30d",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "average_response_time_24h": {
+ "name": "average_response_time_24h",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "uptime_monitor_status_updated_at_idx": {
+ "name": "uptime_monitor_status_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "uptime_monitor_status_monitor_id_uptime_monitors_id_fk": {
+ "name": "uptime_monitor_status_monitor_id_uptime_monitors_id_fk",
+ "tableFrom": "uptime_monitor_status",
+ "tableTo": "uptime_monitors",
+ "columnsFrom": [
+ "monitor_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {
+ "uptime_monitor_status_current_status_check": {
+ "name": "uptime_monitor_status_current_status_check",
+ "value": "current_status IN ('up', 'down', 'unknown')"
+ },
+ "uptime_monitor_status_uptime_24h_check": {
+ "name": "uptime_monitor_status_uptime_24h_check",
+ "value": "uptime_percentage_24h >= 0 AND uptime_percentage_24h <= 100"
+ },
+ "uptime_monitor_status_uptime_7d_check": {
+ "name": "uptime_monitor_status_uptime_7d_check",
+ "value": "uptime_percentage_7d >= 0 AND uptime_percentage_7d <= 100"
+ },
+ "uptime_monitor_status_uptime_30d_check": {
+ "name": "uptime_monitor_status_uptime_30d_check",
+ "value": "uptime_percentage_30d >= 0 AND uptime_percentage_30d <= 100"
+ }
+ },
+ "isRLSEnabled": false
+ },
+ "public.uptime_monitors": {
+ "name": "uptime_monitors",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "organization_id": {
+ "name": "organization_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "monitor_type": {
+ "name": "monitor_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "interval_seconds": {
+ "name": "interval_seconds",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enabled": {
+ "name": "enabled",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "http_config": {
+ "name": "http_config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "tcp_config": {
+ "name": "tcp_config",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "validation_rules": {
+ "name": "validation_rules",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'[]'::jsonb"
+ },
+ "monitoring_type": {
+ "name": "monitoring_type",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'local'"
+ },
+ "selected_regions": {
+ "name": "selected_regions",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[\"local\"]'::jsonb"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "now()"
+ },
+ "created_by": {
+ "name": "created_by",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {
+ "uptime_monitors_organization_id_organization_id_fk": {
+ "name": "uptime_monitors_organization_id_organization_id_fk",
+ "tableFrom": "uptime_monitors",
+ "tableTo": "organization",
+ "columnsFrom": [
+ "organization_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ },
+ "uptime_monitors_created_by_user_id_fk": {
+ "name": "uptime_monitors_created_by_user_id_fk",
+ "tableFrom": "uptime_monitors",
+ "tableTo": "user",
+ "columnsFrom": [
+ "created_by"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user": {
+ "name": "user",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "username": {
+ "name": "username",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email": {
+ "name": "email",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "emailVerified": {
+ "name": "emailVerified",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "image": {
+ "name": "image",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "displayUsername": {
+ "name": "displayUsername",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banned": {
+ "name": "banned",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banReason": {
+ "name": "banReason",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "banExpires": {
+ "name": "banExpires",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "stripeCustomerId": {
+ "name": "stripeCustomerId",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "overMonthlyLimit": {
+ "name": "overMonthlyLimit",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": false
+ },
+ "monthlyEventCount": {
+ "name": "monthlyEventCount",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "sendAutoEmailReports": {
+ "name": "sendAutoEmailReports",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false,
+ "default": true
+ },
+ "scheduled_tip_email_ids": {
+ "name": "scheduled_tip_email_ids",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'[]'::jsonb"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_username_unique": {
+ "name": "user_username_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "username"
+ ]
+ },
+ "user_email_unique": {
+ "name": "user_email_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "email"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user_aliases": {
+ "name": "user_aliases",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "anonymous_id": {
+ "name": "anonymous_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "user_aliases_user_idx": {
+ "name": "user_aliases_user_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "user_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "user_aliases_anon_idx": {
+ "name": "user_aliases_anon_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "anonymous_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "user_aliases_site_id_sites_site_id_fk": {
+ "name": "user_aliases_site_id_sites_site_id_fk",
+ "tableFrom": "user_aliases",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {
+ "user_aliases_site_anon_unique": {
+ "name": "user_aliases_site_anon_unique",
+ "nullsNotDistinct": false,
+ "columns": [
+ "site_id",
+ "anonymous_id"
+ ]
+ }
+ },
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.user_profiles": {
+ "name": "user_profiles",
+ "schema": "",
+ "columns": {
+ "site_id": {
+ "name": "site_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "user_id": {
+ "name": "user_id",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "traits": {
+ "name": "traits",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'{}'::jsonb"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "user_profiles_site_idx": {
+ "name": "user_profiles_site_idx",
+ "columns": [
+ {
+ "expression": "site_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "user_profiles_site_id_sites_site_id_fk": {
+ "name": "user_profiles_site_id_sites_site_id_fk",
+ "tableFrom": "user_profiles",
+ "tableTo": "sites",
+ "columnsFrom": [
+ "site_id"
+ ],
+ "columnsTo": [
+ "site_id"
+ ],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {
+ "user_profiles_site_id_user_id_pk": {
+ "name": "user_profiles_site_id_user_id_pk",
+ "columns": [
+ "site_id",
+ "user_id"
+ ]
+ }
+ },
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.verification": {
+ "name": "verification",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "text",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "identifier": {
+ "name": "identifier",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "expiresAt": {
+ "name": "expiresAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updatedAt": {
+ "name": "updatedAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public.import_platform_enum": {
+ "name": "import_platform_enum",
+ "schema": "public",
+ "values": [
+ "umami",
+ "simple_analytics",
+ "plausible"
+ ]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "columns": {},
+ "schemas": {},
+ "tables": {}
+ }
+}
\ No newline at end of file
diff --git a/server/drizzle/meta/_journal.json b/server/drizzle/meta/_journal.json
index 37c4b9eb3..3fbce3f3f 100644
--- a/server/drizzle/meta/_journal.json
+++ b/server/drizzle/meta/_journal.json
@@ -64,6 +64,13 @@
"when": 1780551464784,
"tag": "0008_black_prowler",
"breakpoints": true
+ },
+ {
+ "idx": 9,
+ "version": "7",
+ "when": 1781895152210,
+ "tag": "0009_ambiguous_gabe_jones",
+ "breakpoints": true
}
]
}
\ No newline at end of file
diff --git a/server/src/api/sessionReplay/recordSessionReplay.test.ts b/server/src/api/sessionReplay/recordSessionReplay.test.ts
new file mode 100644
index 000000000..71a9b9e66
--- /dev/null
+++ b/server/src/api/sessionReplay/recordSessionReplay.test.ts
@@ -0,0 +1,223 @@
+import { FastifyReply, FastifyRequest } from "fastify";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import type { RecordSessionReplayRequest } from "../../types/sessionReplay.js";
+import { recordSessionReplay } from "./recordSessionReplay.js";
+
+const mocks = vi.hoisted(() => ({
+ getConfig: vi.fn(),
+ isIPExcluded: vi.fn(),
+ isCountryExcluded: vi.fn(),
+ isPathExcluded: vi.fn(),
+ isHostnameExcluded: vi.fn(),
+ isUserAgentExcluded: vi.fn(),
+ isSiteOverLimit: vi.fn(),
+ isSiteWithoutReplay: vi.fn(),
+ getLocation: vi.fn(),
+ recordEvents: vi.fn(),
+ loggerInfo: vi.fn(),
+ loggerError: vi.fn(),
+}));
+
+vi.mock("../../lib/siteConfig.js", () => ({
+ siteConfig: {
+ getConfig: mocks.getConfig,
+ isIPExcluded: mocks.isIPExcluded,
+ isCountryExcluded: mocks.isCountryExcluded,
+ isPathExcluded: mocks.isPathExcluded,
+ isHostnameExcluded: mocks.isHostnameExcluded,
+ isUserAgentExcluded: mocks.isUserAgentExcluded,
+ },
+}));
+
+vi.mock("../../services/usageService.js", () => ({
+ usageService: {
+ isSiteOverLimit: mocks.isSiteOverLimit,
+ isSiteWithoutReplay: mocks.isSiteWithoutReplay,
+ },
+}));
+
+vi.mock("../../db/geolocation/geolocation.js", () => ({
+ getLocation: mocks.getLocation,
+}));
+
+vi.mock("../../services/replay/sessionReplayIngestService.js", () => ({
+ SessionReplayIngestService: vi.fn().mockImplementation(() => ({
+ recordEvents: mocks.recordEvents,
+ })),
+}));
+
+vi.mock("../../lib/logger/logger.js", () => ({
+ logger: {
+ info: mocks.loggerInfo,
+ error: mocks.loggerError,
+ },
+}));
+
+type ReplyStub = FastifyReply & {
+ statusCodeValue: number;
+ sentPayload: unknown;
+};
+
+type ReplayRequest = FastifyRequest<{
+ Params: { siteId: string };
+ Body: RecordSessionReplayRequest;
+}>;
+
+type RequestOverrides = {
+ body?: RecordSessionReplayRequest;
+ headers?: Record<string, string>;
+ ip?: string;
+ params?: { siteId: string };
+};
+
+const baseConfig = {
+ siteId: 42,
+ sessionReplay: true,
+ excludedIPs: [],
+ excludedCountries: [],
+ excludedPaths: [],
+ excludedHostnames: [],
+ excludedUserAgents: [],
+};
+
+const baseBody: RecordSessionReplayRequest = {
+ userId: "user-1",
+ events: [{ type: 2, data: { source: 0 }, timestamp: 1_700_000_000_000 }],
+ metadata: {
+ pageUrl: "https://example.com/admin/users?tab=settings",
+ viewportWidth: 1280,
+ viewportHeight: 720,
+ language: "en-US",
+ },
+};
+
+function createRequest(overrides: RequestOverrides = {}): ReplayRequest {
+ return {
+ params: overrides.params ?? { siteId: "site_abc" },
+ body: overrides.body ?? baseBody,
+ headers: {
+ "user-agent": "Mozilla/5.0 HeadlessChrome/120",
+ "x-real-ip": "198.51.100.10",
+ origin: "https://example.com",
+ referer: "https://example.com/admin/users",
+ ...overrides.headers,
+ },
+ ip: overrides.ip ?? "203.0.113.10",
+ } as unknown as ReplayRequest;
+}
+
+function createReply(): ReplyStub {
+ const reply = {
+ statusCodeValue: 200,
+ sentPayload: undefined,
+ status: vi.fn(function (this: ReplyStub, statusCode: number) {
+ this.statusCodeValue = statusCode;
+ return this;
+ }),
+ send: vi.fn(function (this: ReplyStub, payload: unknown) {
+ this.sentPayload = payload;
+ return this;
+ }),
+ };
+
+ return reply as unknown as ReplyStub;
+}
+
+describe("recordSessionReplay exclusions", () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mocks.getConfig.mockResolvedValue(baseConfig);
+ mocks.isIPExcluded.mockResolvedValue(false);
+ mocks.isCountryExcluded.mockResolvedValue(false);
+ mocks.isPathExcluded.mockResolvedValue(false);
+ mocks.isHostnameExcluded.mockResolvedValue(false);
+ mocks.isUserAgentExcluded.mockResolvedValue(false);
+ mocks.isSiteOverLimit.mockReturnValue(false);
+ mocks.isSiteWithoutReplay.mockReturnValue(false);
+ mocks.getLocation.mockResolvedValue({});
+ mocks.recordEvents.mockResolvedValue(undefined);
+ });
+
+ it("uses the shared IP exclusion matcher before recording replay batches", async () => {
+ mocks.getConfig.mockResolvedValue({
+ ...baseConfig,
+ excludedIPs: ["198.51.100.0/24"],
+ });
+ mocks.isIPExcluded.mockResolvedValue(true);
+
+ const reply = createReply();
+ await recordSessionReplay(createRequest(), reply);
+
+ expect(mocks.isIPExcluded).toHaveBeenCalledWith("198.51.100.10", "site_abc");
+ expect(mocks.recordEvents).not.toHaveBeenCalled();
+ expect(reply.sentPayload).toEqual({
+ success: true,
+ message: "Session replay not recorded - IP excluded",
+ });
+ });
+
+ it("does not record replay batches for excluded page paths", async () => {
+ mocks.getConfig.mockResolvedValue({
+ ...baseConfig,
+ excludedPaths: ["/admin/*"],
+ });
+ mocks.isPathExcluded.mockResolvedValue(true);
+
+ const reply = createReply();
+ await recordSessionReplay(createRequest(), reply);
+
+ expect(mocks.isPathExcluded).toHaveBeenCalledWith("/admin/users", "site_abc");
+ expect(mocks.recordEvents).not.toHaveBeenCalled();
+ expect(reply.status).toHaveBeenCalledWith(200);
+ expect(reply.sentPayload).toEqual({
+ success: true,
+ message: "Session replay not recorded - path excluded",
+ });
+ });
+
+ it("does not record replay batches for excluded hostnames", async () => {
+ mocks.getConfig.mockResolvedValue({
+ ...baseConfig,
+ excludedHostnames: ["*.vercel.app"],
+ });
+ mocks.isHostnameExcluded.mockResolvedValue(true);
+
+ const reply = createReply();
+ await recordSessionReplay(
+ createRequest({
+ body: {
+ ...baseBody,
+ metadata: {
+ pageUrl: "https://preview.vercel.app/app",
+ },
+ },
+ }),
+ reply
+ );
+
+ expect(mocks.isHostnameExcluded).toHaveBeenCalledWith("preview.vercel.app", "site_abc");
+ expect(mocks.recordEvents).not.toHaveBeenCalled();
+ expect(reply.sentPayload).toEqual({
+ success: true,
+ message: "Session replay not recorded - hostname excluded",
+ });
+ });
+
+ it("does not record replay batches for excluded user agents", async () => {
+ mocks.getConfig.mockResolvedValue({
+ ...baseConfig,
+ excludedUserAgents: ["HeadlessChrome"],
+ });
+ mocks.isUserAgentExcluded.mockResolvedValue(true);
+
+ const reply = createReply();
+ await recordSessionReplay(createRequest(), reply);
+
+ expect(mocks.isUserAgentExcluded).toHaveBeenCalledWith("Mozilla/5.0 HeadlessChrome/120", "site_abc");
+ expect(mocks.recordEvents).not.toHaveBeenCalled();
+ expect(reply.sentPayload).toEqual({
+ success: true,
+ message: "Session replay not recorded - user agent excluded",
+ });
+ });
+});
diff --git a/server/src/api/sessionReplay/recordSessionReplay.ts b/server/src/api/sessionReplay/recordSessionReplay.ts
index 4a701df2e..8fb6549c1 100644
--- a/server/src/api/sessionReplay/recordSessionReplay.ts
+++ b/server/src/api/sessionReplay/recordSessionReplay.ts
@@ -27,6 +27,28 @@ const recordSessionReplaySchema = z.object({
.optional(),
});
+function parseReplayPageUrl(pageUrl: string | undefined): { hostname?: string; pathname?: string } {
+ if (!pageUrl) {
+ return {};
+ }
+
+ try {
+ const url = new URL(pageUrl);
+ return {
+ hostname: url.hostname,
+ pathname: url.pathname,
+ };
+ } catch {
+ if (pageUrl.startsWith("/")) {
+ return {
+ pathname: pageUrl.split(/[?#]/, 1)[0],
+ };
+ }
+
+ return {};
+ }
+}
+
export async function recordSessionReplay(
request: FastifyRequest<{
Params: { siteId: string };
@@ -36,8 +58,15 @@ export async function recordSessionReplay(
) {
try {
// Get the site configuration to get the numeric siteId
- const { siteId, excludedIPs, excludedCountries, sessionReplay } =
- (await siteConfig.getConfig(request.params.siteId)) ?? {};
+ const {
+ siteId,
+ excludedIPs,
+ excludedCountries,
+ excludedPaths,
+ excludedHostnames,
+ excludedUserAgents,
+ sessionReplay,
+ } = (await siteConfig.getConfig(request.params.siteId)) ?? {};
if (!sessionReplay) {
logger.info(`[SessionReplay] Skipping event for site ${siteId} - session replay not enabled`);
@@ -66,7 +95,7 @@ export async function recordSessionReplay(
// Check if the IP should be excluded from tracking
const requestIP = getIpAddress(request);
- if (excludedIPs && excludedIPs.includes(requestIP)) {
+ if (excludedIPs && excludedIPs.length > 0 && (await siteConfig.isIPExcluded(requestIP, request.params.siteId))) {
logger.info(`[SessionReplay] IP ${requestIP} excluded from tracking for site ${siteId}`);
return reply.status(200).send({
success: true,
@@ -91,8 +120,47 @@ export async function recordSessionReplay(
}
}
+ const { hostname, pathname } = parseReplayPageUrl(body.metadata?.pageUrl);
+
+ // Check if the pathname should be excluded from tracking
+ if (excludedPaths && excludedPaths.length > 0) {
+ const isPathExcluded = await siteConfig.isPathExcluded(pathname, request.params.siteId);
+ if (isPathExcluded) {
+ logger.info(`[SessionReplay] Path ${pathname} excluded from tracking for site ${siteId}`);
+ return reply.status(200).send({
+ success: true,
+ message: "Session replay not recorded - path excluded",
+ });
+ }
+ }
+
+ // Check if the hostname should be excluded from tracking
+ if (excludedHostnames && excludedHostnames.length > 0) {
+ const isHostnameExcluded = await siteConfig.isHostnameExcluded(hostname, request.params.siteId);
+ if (isHostnameExcluded) {
+ logger.info(`[SessionReplay] Hostname ${hostname} excluded from tracking for site ${siteId}`);
+ return reply.status(200).send({
+ success: true,
+ message: "Session replay not recorded - hostname excluded",
+ });
+ }
+ }
+
// Extract request metadata for tracking
const userAgent = request.headers["user-agent"] || "";
+
+ // Check if the user agent should be excluded from tracking
+ if (excludedUserAgents && excludedUserAgents.length > 0) {
+ const isUserAgentExcluded = await siteConfig.isUserAgentExcluded(String(userAgent), request.params.siteId);
+ if (isUserAgentExcluded) {
+ logger.info(`[SessionReplay] User agent excluded from tracking for site ${siteId}`);
+ return reply.status(200).send({
+ success: true,
+ message: "Session replay not recorded - user agent excluded",
+ });
+ }
+ }
+
const ipAddress = getIpAddress(request);
const origin = request.headers.origin || "";
const referrer = request.headers.referer || "";
diff --git a/server/src/api/sites/getSiteExclusions.ts b/server/src/api/sites/getSiteExclusions.ts
new file mode 100644
index 000000000..9310ba9c0
--- /dev/null
+++ b/server/src/api/sites/getSiteExclusions.ts
@@ -0,0 +1,74 @@
+import { FastifyReply, FastifyRequest } from "fastify";
+import { z } from "zod";
+import { eq } from "drizzle-orm";
+import { db } from "../../db/postgres/postgres.js";
+import { sites } from "../../db/postgres/schema.js";
+
+const siteParamsSchema = z.object({
+ siteId: z.string().min(1),
+});
+
+/**
+ * Read a single string-array exclusion column for a site and return it under `responseKey`.
+ * Shared by the path / hostname / user-agent exclusion GET endpoints.
+ */
+async function getExclusionColumn(
+ request: FastifyRequest,
+ reply: FastifyReply,
+ column: typeof sites.excludedPaths | typeof sites.excludedHostnames | typeof sites.excludedUserAgents,
+ responseKey: string
+) {
+ try {
+ const validationResult = siteParamsSchema.safeParse(request.params);
+
+ if (!validationResult.success) {
+ return reply.status(400).send({
+ success: false,
+ error: "Invalid site ID",
+ details: validationResult.error.flatten(),
+ });
+ }
+
+ const numericSiteId = Number(validationResult.data.siteId);
+ if (!Number.isInteger(numericSiteId) || numericSiteId <= 0) {
+ return reply.status(400).send({
+ success: false,
+ error: "Invalid site ID: must be a positive integer",
+ });
+ }
+
+ const site = await db.select({ value: column }).from(sites).where(eq(sites.siteId, numericSiteId)).limit(1);
+
+ if (site.length === 0) {
+ return reply.status(404).send({
+ success: false,
+ error: "Site not found",
+ });
+ }
+
+ const value = Array.isArray(site[0].value) ? site[0].value : [];
+
+ return reply.send({
+ success: true,
+ [responseKey]: value,
+ });
+ } catch (error) {
+ console.error(`Error getting ${responseKey}:`, error);
+ return reply.status(500).send({
+ success: false,
+ error: `Failed to get ${responseKey}`,
+ });
+ }
+}
+
+export function getSiteExcludedPaths(request: FastifyRequest, reply: FastifyReply) {
+ return getExclusionColumn(request, reply, sites.excludedPaths, "excludedPaths");
+}
+
+export function getSiteExcludedHostnames(request: FastifyRequest, reply: FastifyReply) {
+ return getExclusionColumn(request, reply, sites.excludedHostnames, "excludedHostnames");
+}
+
+export function getSiteExcludedUserAgents(request: FastifyRequest, reply: FastifyReply) {
+ return getExclusionColumn(request, reply, sites.excludedUserAgents, "excludedUserAgents");
+}
diff --git a/server/src/api/sites/index.ts b/server/src/api/sites/index.ts
index 8a417f162..25e0afa9e 100644
--- a/server/src/api/sites/index.ts
+++ b/server/src/api/sites/index.ts
@@ -15,6 +15,11 @@ export { getSitePrivateLinkConfig } from "./getSitePrivateLinkConfig.js";
export { updateSitePrivateLinkConfig } from "./updateSitePrivateLinkConfig.js";
export { getSiteExcludedIPs } from "./getSiteExcludedIPs.js";
export { getSiteExcludedCountries } from "./getSiteExcludedCountries.js";
+export {
+ getSiteExcludedPaths,
+ getSiteExcludedHostnames,
+ getSiteExcludedUserAgents,
+} from "./getSiteExclusions.js";
// Site Imports
export { getSiteImports } from "./getSiteImports.js";
diff --git a/server/src/api/sites/updateSiteConfig.ts b/server/src/api/sites/updateSiteConfig.ts
index 00fa1c8d8..40d0b0185 100644
--- a/server/src/api/sites/updateSiteConfig.ts
+++ b/server/src/api/sites/updateSiteConfig.ts
@@ -29,6 +29,9 @@ const updateSiteConfigSchema = z.object({
)
.max(250)
.optional(),
+ excludedPaths: z.array(z.string().trim().min(1).max(2048)).max(100).optional(),
+ excludedHostnames: z.array(z.string().trim().min(1).max(253)).max(100).optional(),
+ excludedUserAgents: z.array(z.string().trim().min(1).max(512)).max(100).optional(),
// Tags
tags: z.array(z.string().trim().min(1).max(50)).max(20).optional(),
@@ -165,6 +168,9 @@ export async function updateSiteConfig(
"blockBots",
"excludedIPs",
"excludedCountries",
+ "excludedPaths",
+ "excludedHostnames",
+ "excludedUserAgents",
"tags",
"sessionReplay",
"webVitals",
diff --git a/server/src/db/postgres/schema.ts b/server/src/db/postgres/schema.ts
index 30f0f51cb..20d1e8751 100644
--- a/server/src/db/postgres/schema.ts
+++ b/server/src/db/postgres/schema.ts
@@ -77,6 +77,9 @@ export const sites = pgTable(
blockBots: boolean().default(true).notNull(),
excludedIPs: jsonb("excluded_ips").default([]), // Array of IP addresses/ranges to exclude
excludedCountries: jsonb("excluded_countries").default([]), // Array of ISO country codes to exclude (e.g., ["US", "GB"])
+ excludedPaths: jsonb("excluded_paths").default([]).$type<string[]>(), // Array of pathname glob patterns to exclude (e.g., ["/admin/*", "/preview"])
+ excludedHostnames: jsonb("excluded_hostnames").default([]).$type<string[]>(), // Array of hostname glob patterns to exclude (e.g., ["localhost", "*.vercel.app"])
+ excludedUserAgents: jsonb("excluded_user_agents").default([]).$type<string[]>(), // Array of case-insensitive user-agent substrings to exclude (e.g., ["HeadlessChrome"])
sessionReplay: boolean().default(false),
webVitals: boolean().default(false),
trackErrors: boolean().default(false),
diff --git a/server/src/index.ts b/server/src/index.ts
index aca9df738..dbbf5889e 100644
--- a/server/src/index.ts
+++ b/server/src/index.ts
@@ -112,7 +112,10 @@ import {
getEmbedStats,
getSite,
getSiteExcludedCountries,
+ getSiteExcludedHostnames,
getSiteExcludedIPs,
+ getSiteExcludedPaths,
+ getSiteExcludedUserAgents,
getSiteHasData,
getSiteImports,
getSiteIsPublic,
@@ -359,6 +362,9 @@ async function sitesRoutes(fastify: FastifyInstance) {
fastify.get("/sites/:siteId/embed-stats", { preHandler: [resolveSiteId] as any }, getEmbedStats); // Public - widget endpoint (handler checks site is public)
fastify.get("/sites/:siteId/excluded-ips", authSite, getSiteExcludedIPs);
fastify.get("/sites/:siteId/excluded-countries", authSite, getSiteExcludedCountries);
+ fastify.get("/sites/:siteId/excluded-paths", authSite, getSiteExcludedPaths);
+ fastify.get("/sites/:siteId/excluded-hostnames", authSite, getSiteExcludedHostnames);
+ fastify.get("/sites/:siteId/excluded-user-agents", authSite, getSiteExcludedUserAgents);
// Site Imports
fastify.get("/sites/:siteId/imports", adminSite, getSiteImports);
diff --git a/server/src/lib/siteConfig.test.ts b/server/src/lib/siteConfig.test.ts
index f054df6de..c1224f1d7 100644
--- a/server/src/lib/siteConfig.test.ts
+++ b/server/src/lib/siteConfig.test.ts
@@ -11,6 +11,9 @@ type SiteRow = {
blockBots: boolean;
excludedIPs: unknown;
excludedCountries: unknown;
+ excludedPaths: unknown;
+ excludedHostnames: unknown;
+ excludedUserAgents: unknown;
privateLinkKey: string | null;
sessionReplay: boolean | null;
webVitals: boolean | null;
@@ -56,6 +59,9 @@ function createSiteRow(overrides: Partial<SiteRow>): SiteRow {
blockBots: true,
excludedIPs: [],
excludedCountries: [],
+ excludedPaths: [],
+ excludedHostnames: [],
+ excludedUserAgents: [],
privateLinkKey: null,
sessionReplay: false,
webVitals: false,
@@ -173,3 +179,57 @@ describe("siteConfig.getConfig", () => {
]);
});
});
+
+describe("siteConfig exclusion matchers", () => {
+ it("matches excluded paths with glob wildcards, case-insensitively", async () => {
+ dbMock.rows.push(createSiteRow({ siteId: 1, excludedPaths: ["/admin/*", "/preview"] }));
+
+ expect(await siteConfig.isPathExcluded("/admin/users", 1)).toBe(true);
+ expect(await siteConfig.isPathExcluded("/ADMIN/users", 1)).toBe(true);
+ expect(await siteConfig.isPathExcluded("/preview", 1)).toBe(true);
+ expect(await siteConfig.isPathExcluded("/admin", 1)).toBe(false); // no trailing segment
+ expect(await siteConfig.isPathExcluded("/blog", 1)).toBe(false);
+ expect(await siteConfig.isPathExcluded(undefined, 1)).toBe(false);
+ });
+
+ it("matches patterns with multiple and consecutive wildcards, bounded against backtracking", async () => {
+ dbMock.rows.push(
+ createSiteRow({ siteId: 5, excludedPaths: ["/a/*/b/*", "/x**y"] }),
+ createSiteRow({ siteId: 6, excludedPaths: ["/" + "*a".repeat(30) + "b"] })
+ );
+
+ expect(await siteConfig.isPathExcluded("/a/1/b/2", 5)).toBe(true);
+ expect(await siteConfig.isPathExcluded("/a//b/", 5)).toBe(true); // wildcards may match empty
+ expect(await siteConfig.isPathExcluded("/a/1/c/2", 5)).toBe(false);
+ expect(await siteConfig.isPathExcluded("/xANYTHINGy", 5)).toBe(true); // consecutive wildcards
+
+ // A pathological pattern must still resolve promptly (no catastrophic backtracking).
+ expect(await siteConfig.isPathExcluded("/" + "a".repeat(2000), 6)).toBe(false);
+ });
+
+ it("matches excluded hostnames with glob wildcards", async () => {
+ dbMock.rows.push(createSiteRow({ siteId: 2, excludedHostnames: ["localhost", "*.vercel.app"] }));
+
+ expect(await siteConfig.isHostnameExcluded("localhost", 2)).toBe(true);
+ expect(await siteConfig.isHostnameExcluded("my-app.vercel.app", 2)).toBe(true);
+ expect(await siteConfig.isHostnameExcluded("vercel.app", 2)).toBe(false);
+ expect(await siteConfig.isHostnameExcluded("example.com", 2)).toBe(false);
+ });
+
+ it("matches excluded user agents as case-insensitive substrings", async () => {
+ dbMock.rows.push(createSiteRow({ siteId: 3, excludedUserAgents: ["HeadlessChrome", "MyMonitor"] }));
+
+ expect(await siteConfig.isUserAgentExcluded("Mozilla/5.0 HeadlessChrome/120", 3)).toBe(true);
+ expect(await siteConfig.isUserAgentExcluded("mozilla/5.0 headlesschrome/120", 3)).toBe(true);
+ expect(await siteConfig.isUserAgentExcluded("Mozilla/5.0 (real browser)", 3)).toBe(false);
+ expect(await siteConfig.isUserAgentExcluded(undefined, 3)).toBe(false);
+ });
+
+ it("returns false when no exclusions are configured", async () => {
+ dbMock.rows.push(createSiteRow({ siteId: 4 }));
+
+ expect(await siteConfig.isPathExcluded("/admin", 4)).toBe(false);
+ expect(await siteConfig.isHostnameExcluded("localhost", 4)).toBe(false);
+ expect(await siteConfig.isUserAgentExcluded("HeadlessChrome", 4)).toBe(false);
+ });
+});
diff --git a/server/src/lib/siteConfig.ts b/server/src/lib/siteConfig.ts
index 03deb6668..accb63405 100644
--- a/server/src/lib/siteConfig.ts
+++ b/server/src/lib/siteConfig.ts
@@ -16,6 +16,9 @@ export interface SiteConfigData {
blockBots: boolean;
excludedIPs: string[];
excludedCountries: string[];
+ excludedPaths: string[];
+ excludedHostnames: string[];
+ excludedUserAgents: string[];
privateLinkKey?: string | null;
sessionReplay: boolean;
webVitals: boolean;
@@ -100,6 +103,9 @@ class SiteConfig {
blockBots: site.blockBots === undefined ? true : site.blockBots,
excludedIPs: Array.isArray(site.excludedIPs) ? site.excludedIPs : [],
excludedCountries: Array.isArray(site.excludedCountries) ? site.excludedCountries : [],
+ excludedPaths: Array.isArray(site.excludedPaths) ? site.excludedPaths : [],
+ excludedHostnames: Array.isArray(site.excludedHostnames) ? site.excludedHostnames : [],
+ excludedUserAgents: Array.isArray(site.excludedUserAgents) ? site.excludedUserAgents : [],
privateLinkKey: site.privateLinkKey,
sessionReplay: site.sessionReplay || false,
webVitals: site.webVitals || false,
@@ -225,6 +231,94 @@ class SiteConfig {
return excludedCountries.some(country => country.toUpperCase() === normalizedCountry);
}
+ /**
+ * Check if a pathname matches any of the excluded path glob patterns.
+ * Patterns support `*` as a wildcard (e.g. "/admin/*", "/preview"). Matching is case-insensitive.
+ */
+ async isPathExcluded(pathname: string | undefined, siteIdOrId?: string | number): Promise<boolean> {
+ if (!siteIdOrId || !pathname) return false;
+ const config = await this.getSiteByAnyId(siteIdOrId);
+ const excludedPaths = config?.excludedPaths || [];
+ return excludedPaths.some(pattern => this.matchesGlob(pathname, pattern));
+ }
+
+ /**
+ * Check if a hostname matches any of the excluded hostname glob patterns.
+ * Patterns support `*` as a wildcard (e.g. "localhost", "*.vercel.app"). Matching is case-insensitive.
+ */
+ async isHostnameExcluded(hostname: string | undefined, siteIdOrId?: string | number): Promise<boolean> {
+ if (!siteIdOrId || !hostname) return false;
+ const config = await this.getSiteByAnyId(siteIdOrId);
+ const excludedHostnames = config?.excludedHostnames || [];
+ return excludedHostnames.some(pattern => this.matchesGlob(hostname, pattern));
+ }
+
+ /**
+ * Check if a user-agent string contains any of the excluded substrings.
+ * Matching is a case-insensitive substring test (e.g. "HeadlessChrome").
+ */
+ async isUserAgentExcluded(userAgent: string | undefined, siteIdOrId?: string | number): Promise<boolean> {
+ if (!siteIdOrId || !userAgent) return false;
+ const config = await this.getSiteByAnyId(siteIdOrId);
+ const excludedUserAgents = config?.excludedUserAgents || [];
+ const normalizedUserAgent = userAgent.toLowerCase();
+ return excludedUserAgents.some(substring => {
+ const trimmed = substring.trim().toLowerCase();
+ return trimmed.length > 0 && normalizedUserAgent.includes(trimmed);
+ });
+ }
+
+ /**
+ * Case-insensitive glob match where `*` matches any sequence of characters
+ * (including the empty string). A pattern with no wildcards must match the
+ * whole value exactly.
+ *
+ * Implemented as a linear two-pointer scan rather than a compiled RegExp so
+ * that, on the hot ingestion path, we (1) never recompile a pattern per event
+ * and (2) can't trigger catastrophic backtracking — matching is bounded to
+ * O(value.length * pattern.length) regardless of how many wildcards a pattern
+ * contains. Every character other than `*` is treated as a literal.
+ */
+ private matchesGlob(value: string, pattern: string): boolean {
+ const glob = pattern.trim().toLowerCase();
+ if (!glob) return false;
+
+ const text = value.toLowerCase();
+
+ let textIdx = 0;
+ let globIdx = 0;
+ let lastStarGlobIdx = -1;
+ let textIdxAfterStar = 0;
+
+ while (textIdx < text.length) {
+ if (globIdx < glob.length && glob[globIdx] === text[textIdx]) {
+ // Literal character match — advance both pointers.
+ textIdx++;
+ globIdx++;
+ } else if (globIdx < glob.length && glob[globIdx] === "*") {
+ // Record this star and tentatively let it match nothing.
+ lastStarGlobIdx = globIdx;
+ textIdxAfterStar = textIdx;
+ globIdx++;
+ } else if (lastStarGlobIdx !== -1) {
+ // Mismatch, but the most recent star can absorb one more character.
+ globIdx = lastStarGlobIdx + 1;
+ textIdxAfterStar++;
+ textIdx = textIdxAfterStar;
+ } else {
+ return false;
+ }
+ }
+
+ // The value is consumed; the match holds only if the rest of the pattern is
+ // entirely trailing stars.
+ while (globIdx < glob.length && glob[globIdx] === "*") {
+ globIdx++;
+ }
+
+ return globIdx === glob.length;
+ }
+
/**
* Check if an IP address matches a specific pattern
* Supports:
diff --git a/server/src/services/tracker/trackEvent.ts b/server/src/services/tracker/trackEvent.ts
index 79a71854b..8d5387d14 100644
--- a/server/src/services/tracker/trackEvent.ts
+++ b/server/src/services/tracker/trackEvent.ts
@@ -346,6 +346,54 @@ export async function trackEvent(request: FastifyRequest, reply: FastifyReply) {
}
}
+ // Check if the pathname should be excluded from tracking
+ if (siteConfiguration.excludedPaths && siteConfiguration.excludedPaths.length > 0) {
+ const isPathExcluded = await siteConfig.isPathExcluded(validatedPayload.pathname, validatedPayload.site_id);
+ if (isPathExcluded) {
+ logger.info(
+ { siteId: validatedPayload.site_id, pathname: validatedPayload.pathname },
+ "Path excluded from tracking"
+ );
+ return reply.status(200).send({
+ success: true,
+ message: "Event not tracked - path excluded",
+ });
+ }
+ }
+
+ // Check if the hostname should be excluded from tracking
+ if (siteConfiguration.excludedHostnames && siteConfiguration.excludedHostnames.length > 0) {
+ const isHostnameExcluded = await siteConfig.isHostnameExcluded(
+ validatedPayload.hostname,
+ validatedPayload.site_id
+ );
+ if (isHostnameExcluded) {
+ logger.info(
+ { siteId: validatedPayload.site_id, hostname: validatedPayload.hostname },
+ "Hostname excluded from tracking"
+ );
+ return reply.status(200).send({
+ success: true,
+ message: "Event not tracked - hostname excluded",
+ });
+ }
+ }
+
+ // Check if the user agent should be excluded from tracking
+ if (siteConfiguration.excludedUserAgents && siteConfiguration.excludedUserAgents.length > 0) {
+ const isUserAgentExcluded = await siteConfig.isUserAgentExcluded(
+ trackingIdentity.userAgent,
+ validatedPayload.site_id
+ );
+ if (isUserAgentExcluded) {
+ logger.info({ siteId: validatedPayload.site_id }, "User agent excluded from tracking");
+ return reply.status(200).send({
+ success: true,
+ message: "Event not tracked - user agent excluded",
+ });
+ }
+ }
+
// Create base payload for the event using validated data
const payload = await createBasePayload(
request, // Pass request for IP/UA