Skip to content

Commit 7052ad0

Browse files
authored
Merge pull request #12 from LukasWesemann/9-add-tracking
Added Logrocket and google
2 parents ceac319 + 057f9eb commit 7052ad0

5 files changed

Lines changed: 28 additions & 2 deletions

File tree

mlai-frontend/package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mlai-frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"logrocket": "^8.0.1",
1213
"@headlessui/react": "^1.7.18",
1314
"@heroicons/react": "^2.1.1",
1415
"next": "14.1.0",

mlai-frontend/src/app/contact/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Contact() {
2424
ABN: 94 807 394 137
2525
</p>
2626
<p className="mt-2">
27-
27+
2828
</p>
2929

3030
<div className="flex justify-left items-center space-x-4 pt-12 pb-32">

mlai-frontend/src/app/layout.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import {
1111
ServerIcon,
1212
} from '@heroicons/react/20/solid'
1313
import Header from "@/components/header";
14+
import LogRocket from 'logrocket';
15+
import Script from "next/script";
16+
LogRocket.init('4s6cqz/mlai-website');
1417

1518
const inter = Inter({ subsets: ["latin"] });
1619

@@ -130,6 +133,22 @@ export default function RootLayout({
130133

131134
return (
132135
<html lang="en">
136+
<Script
137+
strategy="afterInteractive"
138+
src={`https://www.googletagmanager.com/gtag/js?id=G-HVT5DXY0RF}`}
139+
/>
140+
<Script
141+
id="google-analytics"
142+
strategy="afterInteractive"
143+
dangerouslySetInnerHTML={{
144+
__html: `
145+
window.dataLayer = window.dataLayer || [];
146+
function gtag(){dataLayer.push(arguments);}
147+
gtag('js', new Date());
148+
gtag('config', 'G-HVT5DXY0RF');
149+
`,
150+
}}
151+
/>
133152
<body className={inter.className}>
134153
<Header></Header>
135154
{children}

mlai-frontend/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export default function Home() {
356356

357357

358358
<p className="mt-6 text-lg leading-8 text-gray-600">
359-
Our vision is to make Australia an amazing home for AI and machine learning entrepreneurs. Let&apos;s get on it. <a href="#" className="font-semibold text-teal-600 hover:text-teal-500 transition duration-200 ease-in-out">Love letters: [email protected]</a>
359+
Our vision is to make Australia an amazing home for AI and machine learning entrepreneurs. Let&apos;s get on it. <a href="#" className="font-semibold text-teal-600 hover:text-teal-500 transition duration-200 ease-in-out">Love letters: [email protected]</a>
360360

361361
</p>
362362

0 commit comments

Comments
 (0)