diff --git a/_config.yml b/_config.yml index 63508e5132..74b1e76550 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 diff --git a/_layouts/default.pug b/_layouts/default.pug index 93a010b66f..ec25377e3c 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