-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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 #88
Comments
You can add by setting |
|
Thanks for help but I give up :/ |
The problem is caused by Google Analytics 4 |
What's problem in Google Analytics 4? |
I am experiencing this issue too. When you create a new account/property in Google Analytics, it defaults to Google Analytics 4 which (as I understand it) is not backwards compatible with previous collection JS files from before Nov 2020. The problem (and solutions) with Google Analytics 4 in Jekyll themes are summarised in other similar repositories, e.g.: |
For anyone else having this problem, here is how I solved it. Make your own _layouts/default.html file - copy the contents from the same file in the minimal repository: Find the following section at the bottom of the file:
Replace it with this:
|
@mosaicgeospatial Could you open a pull request for this? |
I created a pull request with @mosaicgeospatial's changes. Also, @omerayyildiz, please keep the issue opened until it has been fully resolved. |
How can I add google analytics to my page?
Although I added an analytics.html file into the _includes folder and linked it to the config.yml file but google could not pull any data.
my page: https://omerayyildiz.com/nishgt
my repository: https://github.com/omerayyildiz/nishgt
The text was updated successfully, but these errors were encountered: