From 8d387e14348d852406893d0291fd3877067f25f3 Mon Sep 17 00:00:00 2001 From: jhudsl-robot Date: Tue, 27 Feb 2024 15:53:49 +0000 Subject: [PATCH] Render site --- customize-style.html | 2 +- more_features.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/customize-style.html b/customize-style.html index 3b63890..85de999 100644 --- a/customize-style.html +++ b/customize-style.html @@ -610,7 +610,7 @@

Changing the favicon

Here you can see that by default the Data Science Lab (dasl) favicon will be used.

---
 title: "Course Name "
-date: "August, 2023"
+date: "February, 2024"
 site: bookdown::bookdown_site
 documentclass: book
 bibliography: [book.bib, packages.bib]
diff --git a/more_features.html b/more_features.html
index d570817..50bfa15 100644
--- a/more_features.html
+++ b/more_features.html
@@ -745,7 +745,7 @@ 

Google Analytics

  • Add a stream to your property, choose the Web option. Google Analytics stream options

  • Fill in your stream information with the link for your course (note you may need to remove https as this is part of a pull down menu to the left of where you paste your link) Google Analytics stream Google Analytics stream

  • On the resulting page you will see a Measurement ID. Copy this ID and paste it in the GA_Script.html file in the template replacing the fields that say {MeasurementID} including the curly brackets. For example, if your ID was G-ABC123, then the line gtag('config', '{MeasurementID}'); would become gtag('config', 'G-ABC123');.

  • -
  • Add a line to the _output.yml file above the line that starts with before body: (i.e. nested under includes). This line should be in_header: GA_Script.html. Make sure this line is indented to the same level as the before body: line.

  • +
  • Add a line to the _output.yml file above the line that starts with before body: (i.e. nested under includes). This line should be in_header: GA_Script.html. Make sure this line is indented to the same level as the before body: line.

  • Rerender your course by making a change to one of your chapter RMD files in a pull request and pushing and merging the pull request. This will cause new html files to be made for each chapter in the docs folder. The Google Analytics code should now be in each of the html files - you can check by searching for Google Analytics.

  • Go back to Google Analytics and log in if you need to.

  • Check on the Reports button on the top of the far left icon menu. The icon looks like a bar chart. If you open up a browser window to your hosted course online, then you should see yourself as 1 user in the last 30 minutes. Google Analytics Reports Check Google Analytics