Skip to content

Commit

Permalink
website: Add Demandbase tag to consent manager (#11941)
Browse files Browse the repository at this point in the history
* chore: Add Demandbase tag to consent manager

* fix: Add services to manager options
  • Loading branch information
EnMod committed Jan 28, 2022
1 parent 724a73e commit 16a7996
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/lib/consent-manager-services/index.ts
Original file line number Diff line number Diff line change
@@ -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

2 changes: 2 additions & 0 deletions website/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Head from 'next/head'
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 useFathomAnalytics from '@hashicorp/platform-analytics'
import useAnchorLinkAnalytics from '@hashicorp/platform-util/anchor-link-analytics'
import HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
Expand All @@ -19,6 +20,7 @@ import alertBannerData, { ALERT_BANNER_ACTIVE } from 'data/alert-banner'
NProgress({ Router })
const { ConsentManager, openConsentManager } = createConsentManager({
preset: 'oss',
otherServices: [...localConsentManagerServices],
})

export default function App({ Component, pageProps }) {
Expand Down

0 comments on commit 16a7996

Please sign in to comment.