chore(ibm-common): add mandatory IBM instrumentation tags

This commit is contained in:
Jeff Chew 2024-07-16 15:17:27 -04:00
commit a5a2c62e1e
3 changed files with 40 additions and 0 deletions

View file

@ -15,6 +15,37 @@
} }
} catch (e) {} } catch (e) {}
</script> </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"
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="async"></script>
</head> </head>
<body> <body>
<script type="module" src="/src/index.js"></script> <script type="module" src="/src/index.js"></script>

View file

@ -35,6 +35,11 @@ html[theme="g90"] .code-override {
overflow-x: auto; overflow-x: auto;
} }
/* Override to accommodate mandatory footer */
.bx--header~.bx--side-nav {
height: calc(100% - 120px);
}
/* Addig this to the layout grid fixes overstretching. */ /* Addig this to the layout grid fixes overstretching. */
.fix-overflow { .fix-overflow {
min-width: 0; min-width: 0;

View file

@ -312,6 +312,10 @@
</Grid> </Grid>
</Content> </Content>
<footer>
<dds-footer-container disable-locale-button="true" size="micro" />
</footer>
<style> <style>
p { p {
margin-bottom: var(--cds-spacing-05); margin-bottom: var(--cds-spacing-05);