|
1 | 1 | # Analytics |
2 | 2 |
|
3 | | -O Knowledge suporta a integração de scripts de analytics para monitorar o uso do seu site de documentação. |
| 3 | +Knowledge supports the integration of analytics scripts to monitor the usage of your documentation site. |
4 | 4 |
|
5 | | -## Configuração |
| 5 | +## Configuration |
6 | 6 |
|
7 | | -Para adicionar analytics ao seu site, configure o campo `analytics` no seu arquivo `knowledge.config.ts`: |
| 7 | +To add analytics to your site, configure the `analytics` field in your `knowledge.config.ts` file: |
8 | 8 |
|
9 | 9 | ```typescript |
10 | 10 | export default { |
11 | | - // ... outras configurações |
| 11 | + // ... other configurations |
12 | 12 |
|
13 | 13 | analytics: { |
14 | 14 | script: '<script defer src="https://analytics.riligar.click/script.js" data-website-id="cf3b194d-2130-4120-a6b0-686a8340cb24"></script>' |
15 | 15 | }, |
16 | 16 |
|
17 | | - // ... outras configurações |
| 17 | + // ... other configurations |
18 | 18 | } as KnowledgeConfig; |
19 | 19 | ``` |
20 | 20 |
|
21 | | -## Exemplos de Uso |
| 21 | +## Usage Examples |
22 | 22 |
|
23 | 23 | ### Umami Analytics |
24 | 24 |
|
@@ -53,30 +53,30 @@ analytics: { |
53 | 53 | } |
54 | 54 | ``` |
55 | 55 |
|
56 | | -## Como Funciona |
| 56 | +## How It Works |
57 | 57 |
|
58 | | -O script configurado no campo `analytics.script` será inserido automaticamente no `<head>` de todas as páginas geradas pelo Knowledge. Isso garante que o código de analytics seja carregado em todas as páginas do seu site de documentação. |
| 58 | +The script configured in the `analytics.script` field will be automatically inserted into the `<head>` of all pages generated by Knowledge. This ensures that the analytics code is loaded on all pages of your documentation site. |
59 | 59 |
|
60 | | -## Considerações de Privacidade |
| 60 | +## Privacy Considerations |
61 | 61 |
|
62 | | -Ao implementar analytics, considere: |
| 62 | +When implementing analytics, consider: |
63 | 63 |
|
64 | | -1. **Conformidade com LGPD/GDPR**: Certifique-se de que sua solução de analytics está em conformidade com as leis de proteção de dados |
65 | | -2. **Transparência**: Informe aos usuários sobre o uso de analytics em sua política de privacidade |
66 | | -3. **Analytics Privacy-Friendly**: Considere usar soluções como Plausible ou Umami que são mais respeitosas à privacidade |
| 64 | +1. **GDPR/CCPA Compliance**: Make sure your analytics solution complies with data protection laws |
| 65 | +2. **Transparency**: Inform users about the use of analytics in your privacy policy |
| 66 | +3. **Privacy-Friendly Analytics**: Consider using solutions like Plausible or Umami that are more privacy-respectful |
67 | 67 |
|
68 | | -## Desabilitando Analytics |
| 68 | +## Disabling Analytics |
69 | 69 |
|
70 | | -Para desabilitar analytics, simplesmente remova ou comente o campo `analytics` do seu arquivo de configuração: |
| 70 | +To disable analytics, simply remove or comment out the `analytics` field from your configuration file: |
71 | 71 |
|
72 | 72 | ```typescript |
73 | 73 | export default { |
74 | | - // ... outras configurações |
| 74 | + // ... other configurations |
75 | 75 |
|
76 | 76 | // analytics: { |
77 | 77 | // script: '...' |
78 | 78 | // }, |
79 | 79 |
|
80 | | - // ... outras configurações |
| 80 | + // ... other configurations |
81 | 81 | } as KnowledgeConfig; |
82 | 82 | ``` |
0 commit comments