Wrong GA script injection - script is inserted in the body as text
- Dominant language
- Rust
- Stars
- 543
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
hi
first of all - thanks for this tool and OSS contributions
### Desctiption
today I've decided to use it for my project https://github.com/voiceapiai/ralertsinua, and when I configured analytics settings I found that google tag script injection is broken - script is inserted in the body as text

### How to reproduce:
- remote: find broken script text visible at https://voiceapiai.github.io/ralertsinua/ at the very bottom of the screen
- local - add analytics configuration according to the docs, run oranda build, find broken injection in generated index.html - script is inserted in the body as text
### Possible solution:
according to Google, this is the code one need to insert at the website (notice **2 script tags**):
```
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-TCJ5D14XV4');
```
but this line https://github.com/axodotdev/oranda/blob/fb97859c99ab81f644ab5b1449f725fc5c3e9721/src/site/layout/javascript/analytics.rs#L71
doesn't have HTML tag, and thus the string is being inserted **directly in the body**
if possible, I would like to contribute and help to solve this issue
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.