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 P
I manually write the header in the same RMarkdown file and simply include the Google Analytics chunk. This header goes immediately after the yaml. Works like a charm.
--- title: "XXXXXXXXXX" author: "XXXXXXXXXXX" date: "`r Sys.Date()`" ---