Skip to content
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

Add head-custom.html to allow easier customization of the <head> #133

Merged
merged 2 commits into from
Jul 26, 2021

Conversation

parkr
Copy link

@parkr parkr commented Jul 26, 2021

Users can now simply override the includes instead of the entire default layout.

gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
{% endif %}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you prefer the gtag code, add a _includes/head-custom-google-analytics.html file to your repo with the gtag code! Unfortunately this reverts #49 due to the backwards-incompatible change that it introduced for users of "classic" v3 GA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant