Marketing site loads its analytics script over http, so browsers block it and no visits are recorded
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 94/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- frontend
Línea de trabajo
En apps/outreach/src/components/layout/Head.astro se identifica explícitamente la URL del script de analytics. Cambia su esquema a HTTPS, ejecuta después la compilación de apps/outreach e inspecciona dist/en/index.html para confirmar que hace referencia a la URL HTTPS; el issue indica que no hay ninguna suite de pruebas unitarias ni de Playwright.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The analytics script on the marketing site is requested over plain http://, so browsers block it as mixed content and the site records no visits. opendatacapture.org is served only over HTTPS (http:// redirects to https://). Browsers refuse to load an active script from an http:// URL on an HTTPS page, and they do not upgrade script requests automatically. The analytics host itself serves the same file over HTTPS: https://analytics.douglasneuroinformatics.ca/js/script.js returns 200. The URL has been http:// since tracking was added in 2023, so marketing-page analytics have likely never worked in production.
Where
apps/outreach/src/components/layout/Head.astro:44-45:
<!-- prettier-ignore -->
<script is:inline defer data-domain="opendatacapture.org" src="http://analytics.douglasneuroinformatics.ca/js/script.js"></script>
Reproduce
- Open https://opendatacapture.org/en/ in Chrome with the devtools open.
- Look at the Console and Network panels, or run
typeof window.plausiblein the console.
Actual: Chrome reports the http://analytics.douglasneuroinformatics.ca/js/script.js request as blocked mixed content. Its resource timing entry has status 0 and 0 bytes transferred, and window.plausible is undefined, so the script never ran.
Expected: the script loads over HTTPS and page views are recorded.
Tests
apps/outreach has no unit or Playwright suite, by decision (apps/outreach/AGENTS.md). Verify through the build: dist/en/index.html references https://analytics.douglasneuroinformatics.ca/js/script.js.
Suggested fix
Change the src to https://analytics.douglasneuroinformatics.ca/js/script.js.
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 19
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 56
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DouglasNeuroInformatics/OpenDataCapture
-
Area: Playground Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DouglasNeuroInformatics/OpenDataCapture#1805 ·
Los mantenedores suelen responder en 1 día
-
Area: Instruments Bug Difficulty: Low Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
DouglasNeuroInformatics/OpenDataCapture#1801 ·
Los mantenedores suelen responder en 1 día
-
Area: Instruments Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
DouglasNeuroInformatics/OpenDataCapture#1800 ·
Los mantenedores suelen responder en 1 día
-
Area: Instruments Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
DouglasNeuroInformatics/OpenDataCapture#1799 ·
Los mantenedores suelen responder en 1 día
-
Area: Instruments Bug Difficulty: Low Performance Priority: Medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
DouglasNeuroInformatics/OpenDataCapture#1795 ·
Los mantenedores suelen responder en 1 día
Todos los issues de DouglasNeuroInformatics/OpenDataCapture
Issues similares
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
lingdojo/kana-dojo#32018 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
paperclipai/paperclip#15751 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
BuilderIO/agent-native#7275 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día