From 6c49168d7f7f7af7dacc432f7c0670ffb3760d8b Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 6 Feb 2021 12:02:54 +0000 Subject: [PATCH 1/4] Add Google Analytics GA4 code (Issue #45) --- _config.yml | 3 +++ _includes/analytics_head.html | 9 +++++++++ _layouts/default.html | 1 + 3 files changed, 13 insertions(+) create mode 100644 _includes/analytics_head.html diff --git a/_config.yml b/_config.yml index 1a7bbf1..b3adfbf 100644 --- a/_config.yml +++ b/_config.yml @@ -43,6 +43,9 @@ disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking google_analytics: UA-43339302-11 +# For newer "GA4" analytics, use the following instead of the "UA" entry above +#google_analytics_ga4: G-GABC1DEFG + # Your website URL (e.g. http://amitmerchant1990.github.io or http://www.amitmerchant.com) # Used for Sitemap.xml and your RSS feed url: http://www.amitmerchant.com/reverie diff --git a/_includes/analytics_head.html b/_includes/analytics_head.html new file mode 100644 index 0000000..d077ff8 --- /dev/null +++ b/_includes/analytics_head.html @@ -0,0 +1,9 @@ +{% if site.google_analytics_ga4 %} + + +{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index afac3ec..34a888c 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,6 +11,7 @@ + {% include analytics_head.html %} From 345ea0e4460adcbd9be8a47ad4ab8ec253ead9f8 Mon Sep 17 00:00:00 2001 From: amitmerchant1990 Date: Fri, 12 Feb 2021 11:17:52 +0530 Subject: [PATCH 2/4] remove irrlevant oh meta tag. --- _includes/meta.html | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/_includes/meta.html b/_includes/meta.html index b54766f..9b069c5 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -1,26 +1,25 @@ - - - + + + - {% if page.excerpt %} - - {% elsif page.description %} - - {% else %} - - {% endif %} - +{% if page.excerpt %} + +{% elsif page.description %} + +{% else %} + +{% endif %} + - {% if page.title %} - - - {% endif %} +{% if page.title %} + + +{% endif %} - {% if page.image %} - - - {% else %} - - - {% endif %} - +{% if page.image %} + + +{% else %} + + +{% endif %} From 00ff4bfc016be7867d1807efa91c9992076e02cd Mon Sep 17 00:00:00 2001 From: amitmerchant1990 Date: Tue, 16 Feb 2021 09:24:35 +0530 Subject: [PATCH 3/4] improve readme. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b4153be..d909a35 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https: - Disqus commenting - Social media icons - Google Analytics integration +- Supports [Google Analytics 4](https://support.google.com/analytics/answer/10089681?hl=en) - Fuzzy search across blog posts - Blog with pagination - Categorize posts out-of-the box From 777220dd1751edfec8c2a55159a373391be458a8 Mon Sep 17 00:00:00 2001 From: amitmerchant1990 Date: Tue, 16 Feb 2021 09:38:16 +0530 Subject: [PATCH 4/4] add TOC in readme. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d909a35..1536c8b 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,20 @@ This is a plug-and-play Jekyll theme best suited to use on [GitHub Pages](https: |---------------------|----------------------|----------------------| |![Responsiveness](/images/mobile-demo.png) | ![search](/images/search.png) | ![categories](/images/categories.png) | +# Table of Contents + - [Features overview](#features-overview) + - [Using Reverie on GitHub Pages](#using-reverie-on-github-pages) + - [1. Fork Reverie to your User Repository](#1-fork-reverie-to-your-user-repository) + - [2. Customize and view your site](#2-customize-and-view-your-site) + - [3. Publish your first blog post](#3-publish-your-first-blog-post) + - [Using Categories in Reverie](#using-categories-in-reverie) + - [Pagination](#pagination) + - [RSS](#rss) + - [Sitemap](#sitemap) + - [Emailware](#emailware) + - [The name?](#the-name) + - [License](#license) + ## Features overview - Clean and minimal design