Skip to content

Commit ff0a6dd

Browse files
authored
Add PH (#42)
1 parent 6c5f13e commit ff0a6dd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/app/layout.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ export default function RootLayout({
3737
/>
3838
<meta name="msapplication-TileColor" content="#9e5381" />
3939
<meta name="theme-color" content="#9e5381" />
40-
{/* Google Tag Manager */}
4140
<script
4241
dangerouslySetInnerHTML={{
4342
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
@@ -47,7 +46,16 @@ export default function RootLayout({
4746
})(window,document,'script','dataLayer','GTM-N6SVS9RS');`,
4847
}}
4948
/>
50-
{/* End Google Tag Manager */}
49+
<script
50+
dangerouslySetInnerHTML={{
51+
__html: `!function(t,e){var o,n,p,r;e.__SV||(window.posthog && window.posthog.__loaded)||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.crossOrigin="anonymous",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="init Ce js Ls Te Fs Ds capture Ye calculateEventProperties zs register register_once register_for_session unregister unregister_for_session Ws getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSurveysLoaded onSessionId getSurveys getActiveMatchingSurveys renderSurvey displaySurvey canRenderSurvey canRenderSurveyAsync identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty Bs Us createPersonProfile Hs Ms Gs opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing get_explicit_consent_status is_capturing clear_opt_in_out_capturing Ns debug L qs getPageViewId captureTraceFeedback captureTraceMetric".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
52+
posthog.init('phc_e8FN4rwVNjoQPzYBb3RhOOtxy9SK7TauqjpGcZSYQIT', {
53+
api_host: 'https://us.i.posthog.com',
54+
defaults: '2025-05-24',
55+
person_profiles: 'always',
56+
})`,
57+
}}
58+
/>
5159
{/*
5260
<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"/>
5361
<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"/>
@@ -59,7 +67,6 @@ export default function RootLayout({
5967
*/}
6068
</head>
6169
<body className={cn(inter.className, manrope.className)}>
62-
{/* Google Tag Manager (noscript) */}
6370
<noscript>
6471
<iframe
6572
src="https://www.googletagmanager.com/ns.html?id=GTM-N6SVS9RS"
@@ -68,7 +75,6 @@ export default function RootLayout({
6875
style={{ display: "none", visibility: "hidden" }}
6976
/>
7077
</noscript>
71-
{/* End Google Tag Manager (noscript) */}
7278
<div className="min-h-screen">{children}</div>
7379
</body>
7480
</html>

0 commit comments

Comments
 (0)