Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap analytics id in quotes #104

Merged
merged 1 commit into from
Aug 12, 2021
Merged

Conversation

brian-rose
Copy link
Member

This might get the google analytics working for the Foundations site.

I noticed that my other JupyterBook site (which has working analytics) wrapped the ID in double quotes:
https://github.com/brian-rose/ClimateLaboratoryBook/blob/87801650d5f2e374494d8ccfc955b2a3b3000254/_config.yml#L45
This is consistent with the JupyterBook config reference, which shows double quotes:
https://jupyterbook.org/customize/config.html

I tried using double quotes here, but prettier insisted on changing them to single quotes.

@brian-rose brian-rose added the infrastructure Infrastructure related issue label Aug 12, 2021
@github-actions
Copy link

🚀 📚 Preview for git commit SHA: a2d2185 at: https://611566abd4ebe6104dde867f--pythia-foundations.netlify.app

@brian-rose
Copy link
Member Author

@kmpaul I suggest merging this and see if it get the analytics working. I'm not sure we have a way to test this without merging first.

@kmpaul kmpaul merged commit 2f8cf39 into ProjectPythia:main Aug 12, 2021
@kmpaul
Copy link
Contributor

kmpaul commented Aug 12, 2021

If this doesn't work, then we might be able to wait for a fix:

jupyter-book/jupyter-book#1300
pydata/pydata-sphinx-theme#439

@kmpaul
Copy link
Contributor

kmpaul commented Aug 12, 2021

I don't think this fixed anything, sadly. I can't be 100% sure, but I don't see any differences in the actual HTML generated for the page.

@brian-rose
Copy link
Member Author

Ok! I suppose my Climate Laboratory book must be using an "old style" Google Analytics ID, though I'm not yet clear what that means.

@kmpaul
Copy link
Contributor

kmpaul commented Aug 13, 2021

Does it start with a UA-? Or a G-? The first is the old and the second is the new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Infrastructure related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants