PeanutBase / PeanutbaseWebsite

Repo to document and track issues pertaining to PeanutBase website.
0 stars 0 forks source link

Google Analytics in PB Jekyll Site:May need additional file(s) besides a line in in _config.yml #23

Open sdash-github opened 1 year ago

sdash-github commented 1 year ago

I have already added google_analytics: "UA-49655154-2" in config.yml for google analytics to become functional in PB Jekyll site. In LIS, the site pages have html header with script tags relating to google analytics like below.

<!-- Global site tag (gtag.js) - Google Analytics -->
<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js"></script>
<script type="text/javascript" async="" src="https://www.googletagmanager.com/gtag/js?id=G-PJLDBJV1KB&amp;l=dataLayer&amp;cx=c"></script>
<script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-49655154-1"></script>

@adf-ncgr observed-email- that it may need additional file(s) :

... it looks like there are some files: https://github.com/legumeinfo/jekyll-legumeinfo/blob/main/_includes/head.html https://github.com/legumeinfo/jekyll-legumeinfo/blob/main/_includes/analytics.html that must be something Sam added (it does not appear in the starter site that we forked from). maybe it makes sense to wait until next week when Sam should be back to sort out what needs to be done to incorporate this into sites forked from the starter?

NEXT STEP: SD to bring issue up when @sammyjava is back.