Skip to content

Commit 5df8a56

Browse files
committed
add analytics to api ref docs
1 parent 709eeff commit 5df8a56

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/dokka-presets/templates/base.ftl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<head>
88
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
99
<@page_metadata.display/>
10+
<#-- AWS Analytics tracking script - Implements site-wide analytics and tracking functionality -->
11+
<script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script>
1012
<@template_cmd name="pathToRoot"><script>var pathToRoot = "${pathToRoot}";</script></@template_cmd>
1113
<script>document.documentElement.classList.replace("no-js","js");</script>
1214
<#-- This script doesn't need to be there but it is nice to have
@@ -24,6 +26,16 @@
2426
}
2527
}
2628
</script>
29+
<#-- Scripts for onboarding AWS Shortbread - Manages cookie consent banners and user preferences to help ensure
30+
compliance with privacy regulations like GDPR -->
31+
<script>var existingShortbreadEl = document.getElementById("awsccc-sb-ux-c");
32+
existingShortbreadEl && existingShortbreadEl.remove();
33+
</script>
34+
<script src="https://prod.assets.shortbread.aws.dev/shortbread.js"></script>
35+
<link href="https://prod.assets.shortbread.aws.dev/shortbread.css" rel="stylesheet">
36+
<script>const shortbread = AWSCShortbread();
37+
shortbread.checkForCookieConsent();
38+
</script>
2739
<#-- Resources (scripts, stylesheets) are handled by Dokka.
2840
Use customStyleSheets and customAssets to change them. -->
2941
<@resources/>

0 commit comments

Comments
 (0)