Skip to content

Commit

Permalink
Merge branch 'hotfix/5.1.12' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
SebConejo committed Oct 16, 2024
2 parents 5b16b56 + 60bbca1 commit 0f9f4b0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
Binary file modified docs/static/img/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/assets/images/og-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 24 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { GoogleAnalytics } from '@next/third-parties/google'
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import Script from 'next/script'
import HotjarSnippet from './components/Hotjar'
import { GoogleAnalytics } from '@next/third-parties/google'
import './globals.scss'

const inter = Inter({ subsets: ['latin'] })
Expand Down Expand Up @@ -36,6 +37,28 @@ export default function RootLayout({
{children}
<HotjarSnippet />
<GoogleAnalytics gaId="G-FPJ74C43L9" />
<Script id="cr-relay-script" strategy="afterInteractive">
{`
(function() {
if (typeof window === 'undefined') return;
if (typeof window.signals !== 'undefined') return;
var script = document.createElement('script');
script.src = 'https://cdn.cr-relay.com/v1/site/43b5a956-ea4c-403e-8f29-fb180fc604a9/signals.js';
script.async = true;
window.signals = Object.assign(
[],
['page', 'identify', 'form'].reduce(function (acc, method){
acc[method] = function () {
signals.push([method, arguments]);
return signals;
};
return acc;
}, {})
);
document.head.appendChild(script);
})();
`}
</Script>
</body>
</html>
)
Expand Down

0 comments on commit 0f9f4b0

Please sign in to comment.