Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

90
Visualizações
Disable Google Analytics on Docusaurus site using plugin-google-analytics

I'm currently using the plugin-google-analytics in a Docusaurus site. It works well, is out of the box, super easy to set up. My question is, whether someone is aware if it's possible to toggle off analytics with JavaScript. I ask because I have this requirement I need to fulfill. In other sites where I've worked with GA (Google Analytics), I would just follow this strategy whereby the following spinnet would do the job and disable analytics.

window['ga-disable-GA_MEASUREMENT_ID'] = true;

However, this same strategy is easily applied to the Docusaurus site, I guess it's because since it's statically compiled there's no way to disable this?

Does someone have experience with this particular scenario?

Thanks

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda