Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Footer from "./Footer/Footer"
import ScriptTag from "react-script-tag"
import useGlobalConfig from "../hooks/useGlobalConfig"
import ThemeProvider from "../context/themeContext"
import { Helmet } from 'react-helmet';
import BannerRedirect from "./BannerRedirect/BannerRedirect"

const Layout = ({ children, options = {}, location }) => {
Expand Down Expand Up @@ -44,6 +45,35 @@ const Layout = ({ children, options = {}, location }) => {
{scripts}
{options.hasHeader && <Header />}
<BannerRedirect />
<Helmet>
<script>
{`
window.pipedriveLeadboosterConfig = {
base: 'leadbooster-chat.pipedrive.com',
companyId: 10496688,
playbookUuid: '40a6237e-a2d8-44df-847a-2e3095301529',
version: 2
};
(function () {
var w = window;
if (w.LeadBooster) {
console.warn('LeadBooster already exists');
} else {
w.LeadBooster = {
q: [],
on: function (n, h) {
this.q.push({ t: 'o', n: n, h: h });
},
trigger: function (n) {
this.q.push({ t: 't', n: n });
},
};
}
})();
`}
</script>
<script src="https://leadbooster-chat.pipedrive.com/assets/loader.js" async></script>
</Helmet>
<main>{children}</main>
{options.hasFooter && <Footer />}
{/*© {new Date().getFullYear()}, Built with*/}
Expand Down