diff --git a/website/lib/consent-manager-services/index.ts b/website/lib/consent-manager-services/index.ts new file mode 100644 index 0000000000..3a1a65171d --- /dev/null +++ b/website/lib/consent-manager-services/index.ts @@ -0,0 +1,15 @@ +import { ConsentManagerService } from '@hashicorp/react-consent-manager/types' + +const localConsentManagerServices: ConsentManagerService[] = [ + { + name: 'Demandbase Tag', + description: + 'The Demandbase tag is a tracking service to identify website visitors and measure interest on our website.', + category: 'Analytics', + url: 'https://tag.demandbase.com/960ab0a0f20fb102.min.js', + async: true, + }, +] + +export default localConsentManagerServices + diff --git a/website/pages/_app.js b/website/pages/_app.js index b018ace7e1..d4a777fc85 100644 --- a/website/pages/_app.js +++ b/website/pages/_app.js @@ -8,6 +8,7 @@ import rivetQuery from '@hashicorp/nextjs-scripts/dato/client' import NProgress from '@hashicorp/platform-util/nprogress' import { ErrorBoundary } from '@hashicorp/platform-runtime-error-monitoring' import createConsentManager from '@hashicorp/react-consent-manager/loader' +import localConsentManagerServices from 'lib/consent-manager-services' import useAnchorLinkAnalytics from '@hashicorp/platform-util/anchor-link-analytics' import HashiHead from '@hashicorp/react-head' import AlertBanner from '@hashicorp/react-alert-banner' @@ -18,6 +19,7 @@ import StandardLayout from 'layouts/standard' NProgress({ Router }) const { ConsentManager } = createConsentManager({ preset: 'oss', + otherServices: [...localConsentManagerServices], }) export default function App({ Component, pageProps, layoutData }) {