Skip to content

Commit

Permalink
Revert "Adding Cookie Consent to theme by default"
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyHenry15 authored Dec 11, 2024
1 parent 7952321 commit 43baa1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions _extensions/posit-docs/_extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ contributes:
type: website
website:
favicon: "assets/images/favicon.svg"
cookie-consent:
type: express
style: headline
bread-crumbs: true
navbar:
pinned: true
Expand All @@ -36,4 +33,5 @@ contributes:
link-external-newwindow: true
toc: true
toc-expand: true
include-in-header: "assets/_analytics.html"
# NEW SITES ONLY - DO NOT USE GOOGLE ANALYTICS - WE NEED TO ADD COOKIE CONSENT TO THEME. EXISTING SITES - YOU CAN ENABLE THE _ANALYTICS.HTML FILE BELOW TO CONTINUE USING GA
# include-in-header: "assets/_analytics.html"
2 changes: 1 addition & 1 deletion _extensions/posit-docs/assets/_analytics.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Google Analytics 4 (G-XXXXXXXXXX) -->
<script type="text/plain" cookie-consent="tracking">
<script>
/* Use GA when hosted by our public docs site, not when installed. */
if (location.href.indexOf("docs.posit.co") >= 0) {
window.dataLayer = window.dataLayer || []
Expand Down

0 comments on commit 43baa1b

Please sign in to comment.