Skip to content

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

@sdash-github

Description

@sdash-github

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions