From 90e88c02f938c197baac963a8d33dfd6848c10d3 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 11 May 2026 11:54:56 +0200 Subject: [PATCH 1/2] build: configure posthog managed proxy --- _config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 63508e513..74b1e7655 100644 --- a/_config.yml +++ b/_config.yml @@ -82,7 +82,11 @@ plugins: # Analytics (PostHog) # Set posthog_api_key to enable PostHog analytics posthog_api_key: phc_vpAJqdjdjgSsZis2hg6LwRh6u37BDgKsPw6tZT8ZjWpi -posthog_api_host: https://eu.i.posthog.com +# Default: https://eu.i.posthog.com +# Set posthog_api_host to your PostHog instance URL if using managed reverse proxy or using a different region +posthog_api_host: https://t.timetobuildbob.com +# necessary because you're using a proxy, this way links will point back to PostHog properly +ui_host: https://eu.posthog.com # Legacy: Plausible Analytics (will be removed after PostHog migration) # plausible_domain: timetobuildbob.github.io From 64e297c251a1283e6de6f06596550727c1a5dcc5 Mon Sep 17 00:00:00 2001 From: Bob Date: Mon, 11 May 2026 10:03:13 +0000 Subject: [PATCH 2/2] build(analytics): pass ui_host to posthog.init for managed proxy --- _layouts/default.pug | 1 + 1 file changed, 1 insertion(+) diff --git a/_layouts/default.pug b/_layouts/default.pug index 93a010b66..ec25377e3 100644 --- a/_layouts/default.pug +++ b/_layouts/default.pug @@ -68,6 +68,7 @@ html(lang="en") !function(t,e){var o,n,p,r;e.__SV||(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.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 capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_group_properties alias".split(" "),n=0;n