Skip to content

Commit

Permalink
Migrate to Next-native Hotjar (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishaamer committed Apr 25, 2024
1 parent 8a5d2e6 commit b12e031
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
14 changes: 4 additions & 10 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@ import { Analytics } from "@vercel/analytics/react";
import { Toaster } from "@/components/ui/toaster";
import { AI } from "./action";
import { Providers } from "@/components/providers";
import Hotjar from "@hotjar/browser";
import { Hotjar } from "nextjs-hotjar";
import { init as initFullStory, FullStory } from "@fullstory/browser";
import { GoogleAnalytics } from "nextjs-google-analytics";
import "./globals.css";

const siteId = 4956812;
const hotjarVersion = 6;

Hotjar.init(siteId, hotjarVersion);
Hotjar.init(siteId, hotjarVersion, {
debug: true,
});
initFullStory({ orgId: "o-1XVGW4-na1" });

const meta = {
title: "綠濾",
description: "See your money through the lens of sustainability",
Expand Down Expand Up @@ -71,6 +62,8 @@ export default function RootLayout({
children: React.ReactNode;
}>) {

initFullStory({ orgId: "o-1XVGW4-na1" });

FullStory("trackEvent", {
name: "Ziran Init",
properties: {
Expand All @@ -81,6 +74,7 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<GoogleAnalytics trackPageViews />
<Hotjar id="4956812" sv={6} />;
<body
className={`font-sans antialiased ${GeistSans.variable} ${GeistMono.variable}`}
>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"dependencies": {
"@fullstory/browser": "^2.0.4",
"@hotjar/browser": "^1.0.9",
"@pinecone-database/pinecone": "^2.2.0",
"@polygon.io/client-js": "^7.3.2",
"@radix-ui/colors": "^3.0.0",
Expand Down Expand Up @@ -47,6 +46,7 @@
"next-auth": "5.0.0-beta.16",
"next-themes": "^0.3.0",
"nextjs-google-analytics": "^2.3.3",
"nextjs-hotjar": "^1.2.0",
"openai": "^4.38.5",
"react": "^18.2.0",
"react-chartjs-2": "^5.2.0",
Expand Down
22 changes: 14 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b12e031

Please sign in to comment.