Could be a simple question but I am full of doubts right now about adding Google Analytics Tracking ID to GitHub page.
I am using G
With me, I was unable to configure Google Analytics 4 (prev Web+App) via adding google_analytics: UA-xxxxxxxx-x to your _config.yml as mentioned previously in one of the answers.
So I had to put the js recommended by the Google Analytics in the .md file.
Anything you put in the script tag in .md will not be rendered.