website: Add Demandbase tag to consent manager (#1832)
* chore: Add Demandbase tag to consent manager * fix: Add services to manager options
This commit is contained in:
1 parent
86245c48da
commit
029569a201
2 files changed
+17
No files matched your search
@@ -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
|
||||
|
||||
@@ -4,6 +4,7 @@ import '@hashicorp/platform-util/nprogress/style.css'
|
||||
import useFathomAnalytics from '@hashicorp/platform-analytics'
|
||||
import NProgress from '@hashicorp/platform-util/nprogress'
|
||||
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 HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
|
||||
import Router from 'next/router'
|
||||
@@ -18,6 +19,7 @@ import alertBannerData, { ALERT_BANNER_ACTIVE } from 'data/alert-banner'
|
||||
NProgress({ Router })
|
||||
const { ConsentManager, openConsentManager } = createConsentManager({
|
||||
preset: 'oss',
|
||||
otherServices: [...localConsentManagerServices],
|
||||
})
|
||||
|
||||
const title = 'Boundary by HashiCorp'
|
||||
|
||||
Reference in new issue
Block a user