chore(docs): add mandatory IBM instrumentation tags (#1988)

Co-authored-by: Jeff Chew <jeff.chew@gmail.com>
This commit is contained in:
Eric Liu 2024-08-07 08:58:45 -07:00 committed by GitHub
commit ee70fbfa80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 1 deletions

View file

@ -11,10 +11,47 @@
if (["white", "g10", "g80", "g90", "g100"].includes(theme)) {
document.documentElement.setAttribute("theme", theme);
document.documentElement.style.setProperty("color-scheme", ["white", "g10"].includes(theme) ? "light" : "dark");
document.documentElement.style.setProperty(
"color-scheme",
["white", "g10"].includes(theme) ? "light" : "dark"
);
}
} catch (e) {}
</script>
<!-- Tealium/GA Set up -->
<script type="text/javascript">
window._ibmAnalytics = {
settings: {
name: "CarbonSvelte",
isSpa: true,
tealiumProfileName: "ibm-web-app",
},
onLoad: [["ibmStats.pageview", []]],
};
digitalData = {
page: {
pageInfo: {
ibm: {
siteId: "IBM_" + _ibmAnalytics.settings.name,
},
},
category: {
primaryCategory: "PC100",
},
},
};
</script>
<script
type="module"
async
src="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/footer.min.js"
></script>
<script
src="//1.www.s81c.com/common/stats/ibm-common.js"
type="text/javascript"
async
></script>
</head>
<body>
<script type="module" src="/src/index.js"></script>

View file

@ -312,7 +312,18 @@
</Grid>
</Content>
<footer>
<dds-footer-container disable-locale-button="true" size="micro"
></dds-footer-container>
</footer>
<style>
@media (min-width: 1056px) {
footer {
margin-left: 256px;
}
}
p {
margin-bottom: var(--cds-spacing-05);
}