From 7079d0ae84a68a948db89302216e38aecc9390e0 Mon Sep 17 00:00:00 2001 From: Noel Quiles <3746694+EnMod@users.noreply.github.com> Date: Mon, 24 Jan 2022 13:49:48 -0500 Subject: [PATCH] Add tag to consent manager --- website/lib/consent-manager-services/index.ts | 14 ++++++++++++++ website/pages/_app.js | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 website/lib/consent-manager-services/index.ts diff --git a/website/lib/consent-manager-services/index.ts b/website/lib/consent-manager-services/index.ts new file mode 100644 index 0000000000000..abc896fbe3140 --- /dev/null +++ b/website/lib/consent-manager-services/index.ts @@ -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 diff --git a/website/pages/_app.js b/website/pages/_app.js index c683c89b523ad..a03e216e25a36 100644 --- a/website/pages/_app.js +++ b/website/pages/_app.js @@ -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 }) {