Skip to content

Commit

Permalink
Add tag to consent manager
Browse files Browse the repository at this point in the history
  • Loading branch information
EnMod committed Jan 24, 2022
1 parent f7a25fc commit 7079d0a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions website/lib/consent-manager-services/index.ts
Original file line number Diff line number Diff line change
@@ -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
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 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'
Expand All @@ -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 }) {
Expand Down

0 comments on commit 7079d0a

Please sign in to comment.