diff --git a/_config.yml b/_config.yml index 959fdff7c..a7fe0f8b2 100644 --- a/_config.yml +++ b/_config.yml @@ -47,6 +47,7 @@ additional_links: # gtm: "GTM-0000000" # gtag: "UA-00000000-0" # google_analytics: "UA-00000000-0" +# google_analytics_4: "G-ABCDEFGHIJ" # About Section # about_title: About Me (Use this to override about section title) diff --git a/_includes/ga4.html b/_includes/ga4.html new file mode 100644 index 000000000..1b0b19210 --- /dev/null +++ b/_includes/ga4.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html index c5a963db0..83f1243c4 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,6 +9,9 @@ + {%- if jekyll.environment == 'production' and site.google_analytics_4 -%} + {%- include ga4.html -%} + {%- endif -%} {%- if jekyll.environment == 'production' and site.google_analytics -%} {%- include google-analytics.html -%} {%- endif -%}