How to include Google Analytics in an RMarkdown generated GitHub Page?
问题 How can I always include the Google Analytics tacking code on my GitHub Pages webpage generated with R Markdown? I am currently creating a webpage hosted on GitHub Pages using RMarkdown. To create site, I run rmarkdown::render_site() . This command will knit all R Markdown documents to create the relevant .html files. However, I want to include Google Analytics on my site. To do this, I need to include a University Analytics tracking code to my property by pasting the JavaScript code in my