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
Google Analytics documenation #2101
Comments
In the mkdocs/mkdocs/themes/mkdocs/base.html Lines 44 to 56 in a4eb4eb
And for the mkdocs/mkdocs/themes/readthedocs/base.html Lines 55 to 76 in a4eb4eb
Of course, for third-party themes, things may be different. Regarding the two values, they are the two values passed to In any event, a PR with suggested changes is always welcome. |
The documentation says something like:
Which one is correct now?? |
Let's close this off in favor of #3630 Including GA should be supported as a template override, not a config option. Any docs here should probably be generic - we can leave it to analytics providers to deal with their own "here's how to include us on your website" docs. |
I'm trying to switch from Docsify, where, at runtime I would have this JS run:
The documentation is vague and does not explain what the code is, or how it works:
Is the second argument a name? Something to match against before analytics are enabled? How would you go about defining which ID to use based on the current environment (dev/test/prod/local)? Can you hook into this on page load (since GA is just running in JS anyway) so the above logic can stay in the JavaScript?
Can the docs be updated to have these answers?
It looks like there is some theme or template file for analytics, but there is no example.
For others looking for a work around to the lack of proper documentation, here's the best thing I could come up with:
theme
folderfooter.html
in the folderThe text was updated successfully, but these errors were encountered: