Skip to content

Commit

Permalink
Add cookie notice to nav.html
Browse files Browse the repository at this point in the history
  • Loading branch information
HleinaD committed Feb 8, 2024
1 parent 5a66344 commit dca451a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ footer-link-col: "#404040"
#gtag: ""

# Fill in your Google Analytics ID to track your website using Google Analytics
google_analytics: "UA-125339405-1" #MUST ALSO BE UPDATED IN analytics.js
#google_analytics: "UA-125339405-1" #MUST ALSO BE UPDATED IN analytics.js

# Google Tag Manager ID
#gtm: ""
Expand Down
2 changes: 1 addition & 1 deletion _includes/cookie-consent.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
}

if(readCookie('cookie-notice-option')=='true') {
{% if jekyll.environment == "production" and site.google_analytics %}
{% if jekyll.environment == "production" %}
{% include analytics.js %}
{% endif %}
} else if (readCookie('cookie-notice-option')!='false'){
Expand Down
2 changes: 2 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,6 @@
</div>
{% endif %}

{% include cookie-consent.html %}

</nav>

0 comments on commit dca451a

Please sign in to comment.