History

exclude marketing analytics changes

Rhys Sullivan committed 6 months ago

Commit e00e7a21 parent c96b4712 files · +0 −29Browse files

Unified · Split

2 files
  1. apps/marketing/src/layouts/Layout.astro +0 −26
  2. apps/marketing/wrangler.toml +0 −3
apps/marketing/src/layouts/Layout.astro+0−26
@@ -28,32 +28,6 @@ const { · 27 unmodified lines
28 <link rel="preconnect" href="https://fonts.googleapis.com" />28 <link rel="preconnect" href="https://fonts.googleapis.com" />
29 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />29 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
30 <link href="https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet" />30 <link href="https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet" />
31 <script>
32 import posthog from "posthog-js";
33
34 const posthogKey =
35 import.meta.env.PUBLIC_POSTHOG_KEY ??
36 "phc_nNLrNMALpRsfrEkZovUkfMxYbcJvHnsJHeoSPavprgLL";
37 const analyticsPath = (import.meta.env.PUBLIC_ANALYTICS_PATH ?? "a").replace(
38 /^\/+|\/+$/g,
39 "",
40 );
41
42 posthog.init(posthogKey, {
43 api_host:
44 import.meta.env.PUBLIC_POSTHOG_HOST ??
45 `${window.location.origin}/api/${analyticsPath}`,
46 ui_host: "https://us.posthog.com",
47 defaults: "2025-05-24",
48 person_profiles: "identified_only",
49 disable_session_recording: false,
50 session_recording: {
51 maskAllInputs: true,
52 maskTextSelector: "[data-ph-mask]",
53 blockSelector: "[data-ph-block]",
54 },
55 });
56 </script>
57 </head>31 </head>
58 <body class="antialiased">32 <body class="antialiased">
59 <slot />33 <slot />
apps/marketing/wrangler.toml+0−3
@@ -1,6 +1,3 @@
1name = "executor-marketing"1name = "executor-marketing"
2compatibility_date = "2026-04-22"2compatibility_date = "2026-04-22"
3compatibility_flags = ["nodejs_compat"]3compatibility_flags = ["nodejs_compat"]
4
5[vars]
6PUBLIC_POSTHOG_KEY = "phc_nNLrNMALpRsfrEkZovUkfMxYbcJvHnsJHeoSPavprgLL"