Skip to content

Commit d088f62

Browse files
authored
add consent and amplitude scripts (#1518)
her er jeg på dypt vann, vetta faen om det funker 😂
1 parent cba486e commit d088f62

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

apps/docs/src/routes/__root.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ function RootDocument() {
2626
<html lang="no">
2727
<head>
2828
<HeadContent />
29+
{process.env.NODE_ENV === 'production' && (
30+
<>
31+
<script
32+
src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"
33+
data-language="no"
34+
type="text/javascript"
35+
data-domain-script="ea448f9e-5a74-4f6e-9260-c61b81f67013"
36+
/>
37+
<script type="text/javascript">function OptanonWrapper() {}</script>
38+
<script
39+
src="https://www.obos.no/collector.js"
40+
type="module"
41+
id="collector-script"
42+
data-api-key="b85ae7f346517c8070821d6b66e9d69e"
43+
data-app-name="grunnmuren"
44+
data-enable-session-replay="true"
45+
crossOrigin=""
46+
/>
47+
</>
48+
)}
2949
</head>
3050
{/* Setting the body position to relative enables setting the backdrop on expanded menu */}
3151
<body className="relative">

0 commit comments

Comments
 (0)