-
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 data not received #561
Comments
Hi, I have a similar issue. I have inspected the https://github.com/jekyll/minima/blob/master/_includes/google-analytics.html file and it seems that the last modification "Migrate from analytics.js to gtag.js" (#281) is not included in the 2.5.1 release version (although, I think it was committed before). Check: tried running the commands from the last committed version through the JS console, I could see 1 pageview appear on analytics using a measurement_ID (instead of tracking_ID). But nothing happens with the current version. I think simply releasing a package with the commit mentioned above could solve some of these issues. I am using it through GitHub Pages, so I will have to wait until the GP dependency version for minima rolls as well. |
@zsomborkoman Since you're on GitHub Pages, you can utilize unreleased changes easily by using the # _config.yml
- theme: minima
+ remote_theme: jekyll/minima
plugins:
+ - jekyll-remote-theme |
OK, so it's a bug. Personally I included the code provided by Google directly into my Jekyll template to have it on each page. |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
I'm having a similar issue with Google Analytics for the minima theme deployed on Netlify. I tried adding the environment variable, and although I can see the script, I don't receive any data |
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
[O[Ihttps://github.com/jekyll/minima/issues/561) So I've put the relevent GA4 in an included head.html file.
Using the remote theme fixed the issue for me |
It is surprising that there has not been a new release for 3 years and 153 commits. When will Jekyll release a new version? |
Signed-off-by: Babak K. Shandiz <[email protected]> As discussed in the link below, the released version of the jekyll minima theme, does not handle Google Analytics plugin well. So, the solution is to opt using `remote-theme` field and not using the theme's latest released version: jekyll/minima#561
Hi, I put this in, but it doesn't seem to work. Google analytics still shows 0 users for my github pages https://xilinjia.github.io |
Hey, The remote theme solution actually works. Interestingly, I've been testing it on Brave browser which reportedly blocks google analytics, so it never worked. When I access my site through Firefox or Chrome, then I can see it from google analytics. |
If you're using slate tempate then look into this issue: |
plugin added to 'gems:' Following jekyll/minima#561
OK, stopped being lazy - made changes a la https://cuda-chen.github.io/blogging/2022/04/30/switch-your-jekyll-blog-to-google-analytics-4-simplified.html & jekyll/minima#561
I create an account on Google Analytics. It generates me an ID which starts with
G-BXXXXXX
.I put it in
_config.yml
:When I visit the page, I see the code :
My problem is maybe linked with #555
The text was updated successfully, but these errors were encountered: