Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions website/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,37 @@

<link rel="shortcut icon" href="/assets/logos/favicon.png" />

<script
type="text/javascript"
async="async"
src="//1.www.s81c.com/common/carbon/autotrack.min.js"></script>

<script>
window.onload = () => {
if (window.autoTrack) {
window.autoTrack.updateClassConfig([
'.hds-button',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably, we'd need to add all the classnames used on links and buttons in the design system to this list just to be safe. But Autotrack also tracks all buttons/links by default.

'.hds-link-inline',
'.hds-link-standalone',
'.hds-dropdown-list-item',
'.hds-pagination-nav__control',
'.hds-tag__dismiss',
'.hds-dismiss-button',
'.hds-tabs__tab',
'.hds-app-side-nav__list-item-link',
'.hds-breadcrumb__link',
'.hds-stepper-nav__step-button']);
}

window.autoTrack.updateCallback((eventName, eventData) => {
console.log(`Override event (${eventName}) - Data: ${JSON.stringify(eventData)}`);
});

// UNCOMMENT TO ENABLE DEV MODE (VISUALLY HIGHLIGHTS ELEMENTS ON PAGE)
window.autoTrack.setDevMode(true);
};
</script>

{{content-for "head-footer"}}
</head>
<body class="doc-page-wrapper" id="topofpage">
Expand Down