mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
docs: move IBM analytics script to _layout.svelte
This commit is contained in:
parent
8a67a5bbf1
commit
66dc602889
2 changed files with 36 additions and 34 deletions
|
@ -20,40 +20,6 @@
|
||||||
}
|
}
|
||||||
} 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"
|
|
||||||
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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="module" src="/src/index.js"></script>
|
<script type="module" src="/src/index.js"></script>
|
||||||
|
|
|
@ -85,6 +85,42 @@
|
||||||
}
|
}
|
||||||
}}" />
|
}}" />
|
||||||
|
|
||||||
|
<svelte:head>
|
||||||
|
<!-- 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>
|
||||||
|
</svelte:head>
|
||||||
|
|
||||||
<Theme
|
<Theme
|
||||||
persist
|
persist
|
||||||
bind:theme="{$theme}"
|
bind:theme="{$theme}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue