-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 #816
Comments
I checked the Analytics dashboard for manual installation instructions for Google Analytics. It provided me with a snippet to include in my site. I compared it to
This caused data to start flowing into my Google Analytics instance. If you need to troubleshoot, further check out this documentation: https://support.google.com/tagassistant/answer/10039345?sjid=15349293314530816036-EU. |
@iTiamo Will you be able to submit a pull request to update the analytics code provided by Minima? |
A previous version of my comment included my own Google Analytics tag, I hadn't replaced it with the right liquid parameter. I have done so now. @ashmaroli Sure, I will do so. #824 |
site.google_analytics : analytics ID should be added to config.yml right ? |
Yes, this is already detailed in the README. https://github.com/jekyll/minima/tree/2.5-stable?tab=readme-ov-file#enabling-google-analytics |
Yes indeed sorry. Still not working. Maybe a "production"environment variable issue on github. Analytics is only working in production mode according to the README |
Thanks for the help btw |
Yes, I had to include the environment variable in my GitHub pages deployment. Additionally the Google Analytics tag should be in the root of the config file. Note that the site object is populated from there. So don't create a site object in the config file yourself. |
For others landing here. There are two open PRs for this (1 each for the
|
How do you include it ? |
If you are using GH pages, you can find the environment variables in your repository's settings, environments, github-pages. You can validate the Google Analytics deployment by inspecting your blog's HTML code. Simply CTRL+F for the Google Analytics tag. I hope that helps. |
Hi there,
I followed the instructions to use google analytics, and GA does not see any connection to the website, any view, etc.
Could you tell me if the publisehd process is not valid anymore ?
Thanks
Update
For others landing here. There are two open PRs for this (1 each for the
2.5-stable
andmaster
branch) below. Either copy changes as per PR diff or use the remote-theme plugin to pull in patch from applicable PR branch:v2.5
seriesv3
The text was updated successfully, but these errors were encountered: