Skip to content

Commit

Permalink
add pirsch script (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
  • Loading branch information
golanglemonade authored Dec 7, 2024
1 parent a7c545f commit 97fb17a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/console/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { Metadata } from 'next'
import { outfit, mincho, jetBrainsMono} from '../fonts'
import { outfit, mincho, jetBrainsMono } from '../fonts'
import { SessionProvider } from 'next-auth/react'
import { Toaster } from '@repo/ui/toaster'
import Providers from './providers'
import './globals.css'
import { pirschAnalyticsKey } from '@repo/dally/auth'

export const metadata: Metadata = {
title: {
Expand All @@ -25,6 +26,11 @@ export default function RootLayout({
async
src="https://js.stripe.com/v3/pricing-table.js">
</script>
{pirschAnalyticsKey && (
<script defer src="https://api.pirsch.io/pa.js"
id="pianjs"
data-code={pirschAnalyticsKey}></script>
)}
</head>
<body
className={`${outfit.variable} ${mincho.variable} ${jetBrainsMono.variable} font-sans w-full h-full bg-ziggurat-100 overscroll-none dark:bg-glaucous-950`}
Expand Down
1 change: 1 addition & 0 deletions packages/dally/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ export const includeQuestionnaireCreation = process.env.NEXT_PUBLIC_INCLUDE_QUES
export const surveyLicenseKey = process.env.NEXT_PUBLIC_SURVEYJS_KEY
export const stripePricingTableId = process.env.NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID
export const stripePublishableKey = process.env.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
export const pirschAnalyticsKey = process.env.NEXT_PUBLIC_PIRSCH_KEY
export const isDevelopment = process.env.NODE_ENV === 'development'
export const isVercelDev = process.env.VERCEL_ENV === 'development' || process.env.VERCEL_ENV === 'preview'

0 comments on commit 97fb17a

Please sign in to comment.