HashDAG | Interactively Modifying Compressed Sparse Voxel | 3D Printing library
kandi X-RAY | HashDAG Summary
kandi X-RAY | HashDAG Summary
Interactively Modifying Compressed Sparse Voxel Representations
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of HashDAG
HashDAG Key Features
HashDAG Examples and Code Snippets
Community Discussions
Trending Discussions on HashDAG
QUESTION
I'm trying to add a Google Analytics tag to this website, built with Jekyll and hosted on Github Pages (repo). I can't get the tag to work.
I've followed this tutorial exactly for Google Analytics with Jekyll. I added an _includes/analytics.html file with the script, and edited my config.yml and _layouts/default.html files accordingly. I've tried it both with a Universal Analytics property ("UA-" ID) and the new Google Analytics 4 property ("G-" ID), but the tag is not working.
I've waiting for over 24 hours multiple times, followed all the troubleshooting guidelines, but the tag is clearly not installed properly. There is no tracking code that is added to the head of any files in the _site folder, Google Tag assistant is not identifying any tags, I don't see any Analytics hits in the Network tab, and no data is showing up on my Analytics page.
What could I be doing wrong here? Maybe the {% include analytics.html %} line is supposed to go somewhere other than my default.html file?
...ANSWER
Answered 2020-Dec-19 at 21:39You can see your default templates in the _config.yml file. Notice the layout for pages is page
. In layouts/page.html you have not included {% include analytics.html %}
. You have a couple of options:
- Add your conditional to the page layout.
- Don't duplicate the content in the page and default layouts. You can make whatever changes need making to the page layout (meaning the differences between that layout and the post layout, for example) and then pass the page layout to the default layout. You can see an example in the minima theme.
- Change the defaults in the site config file so that your pages go to the default layout.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install HashDAG
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page