Google Analytics with Jekyll

@majorgear if you are just rendering a script in a layout then try step away and look back at it to see what you’re missing.

You might start with putting it directly on a .md page then move it to a layout and then to includes file, testing at each step. Also make sure you it in a layout that is being used and if you make say H2 changes that the content appears

In case you are using a flow where it is only rendered on a production build use

JEKYLL_ENV=production bundle exec jekyll s

I also covered a few approaches to using Analytics if you want to try them. minima theme vs includes vs plugin

1 Like