Add tag to consent manager (#13768)

This commit is contained in:
Noel Quiles
2022-01-26 16:17:26 -05:00
committed by GitHub
parent 2d14aa7857
commit b204fdd49e
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import { ConsentManagerService } from '@hashicorp/react-consent-manager/types'
const localConsentManagerServices: ConsentManagerService[] = [
{
name: 'Qualified Chatbot',
description:
'Qualified is a chatbot service that allows visitors to chat with our sales staff through the website.',
category: 'Email Marketing',
url: 'https://js.qualified.com/qualified.js?token=CWQA3q9CaEKHNF2t',
async: true,
},
]
export default localConsentManagerServices

View File

@@ -6,6 +6,7 @@ import Head from 'next/head'
import rivetQuery from '@hashicorp/nextjs-scripts/dato/client'
import { ErrorBoundary } from '@hashicorp/platform-runtime-error-monitoring'
import createConsentManager from '@hashicorp/react-consent-manager/loader'
import localConsentManagerServices from 'lib/consent-manager-services'
import NProgress from '@hashicorp/platform-util/nprogress'
import useFathomAnalytics from '@hashicorp/platform-analytics'
import useAnchorLinkAnalytics from '@hashicorp/platform-util/anchor-link-analytics'
@@ -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 }) {