Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Marketing site loads its analytics script over http, so browsers block it and no visits are recorded

Abierto Apto para principiantes
#1,777 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

Area: Outreach Bug Difficulty: Low Good First Issue Priority: Medium

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

  1. Open https://opendatacapture.org/en/ in Chrome with the devtools open.
  2. Look at the Console and Network panels, or run typeof window.plausible in 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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DouglasNeuroInformatics/OpenDataCapture

Todos los issues de DouglasNeuroInformatics/OpenDataCapture

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.