Skip to content

Commit

Permalink
Merge pull request #38 from 3um-Group/privacycookie
Browse files Browse the repository at this point in the history
Privacy Cookie Controls
  • Loading branch information
denzuko authored Jul 2, 2024
2 parents de03fa4 + 3bbdd84 commit 64edafc
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {


import "./globals.css";
import PrivacyControls from "@/components/PrivacyCookieManger";



Expand All @@ -32,6 +33,7 @@ export default function RootLayout({
<Provider>
<body className={inter.className}>
{children}
<PrivacyControls/>
<HubspotChatbot></HubspotChatbot>
</body>
</Provider>
Expand Down
64 changes: 64 additions & 0 deletions components/PrivacyCookieManger.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import Script from "next/script";

const PrivacyControls = () => {
return (
<>
<Script
id="iubenda-config"
type="text/javascript"
dangerouslySetInnerHTML={{
__html: `
var _iub = _iub || [];
_iub.csConfiguration = {
"askConsentAtCookiePolicyUpdate": true,
"enableFadp": true,
"enableLgpd": true,
"enableUspr": true,
"fadpApplies": true,
"floatingPreferencesButtonDisplay": "bottom-left",
"lang": "en",
"perPurposeConsent": true,
"siteId": 3689309,
"usprApplies": true,
"usPreferencesWidgetDisplay": "inline-center",
"whitelabel": false,
"cookiePolicyId": 38920869,
"banner": {
"acceptButtonDisplay": true,
"closeButtonDisplay": false,
"customizeButtonDisplay": true,
"explicitWithdrawal": true,
"listPurposes": true,
"ownerName": "3umgroup.com/",
"position": "bottom",
"rejectButtonDisplay": true,
"showTitle": false,
"showTotalNumberOfProviders": true
}
};
`,
}}
/>
<Script
type="text/javascript"
src="https://cs.iubenda.com/autoblocking/3689309.js"
/>
<Script type="text/javascript" src="//cdn.iubenda.com/cs/gpp/stub.js" />
<Script
type="text/javascript"
src="//cdn.iubenda.com/cs/iubenda_cs.js"
charSet="UTF-8"
async
/>
<Script
id="hs-script-loader"
type="text/javascript"
async
defer
src="//js-na1.hs-scripts.com/46648362.js"
/>
</>
);
};

export default PrivacyControls;

0 comments on commit 64edafc

Please sign in to comment.