Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions _layouts/default.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('{{ site.posthog_api_key }}', {
api_host: '{{ site.posthog_api_host | default: "https://eu.i.posthog.com" }}',
{% if site.ui_host %}ui_host: '{{ site.ui_host }}',{% endif %}
person_profiles: 'identified_only',
loaded: function(posthog) {
if (window.location.hostname === 'localhost') {
Expand Down
Loading