From c03a1a4cfc84d98a7032f728658c3f6b3e21e739 Mon Sep 17 00:00:00 2001 From: Saurabh Misra Date: Fri, 24 Oct 2025 16:25:31 -0700 Subject: [PATCH] better way to use posthog Signed-off-by: Saurabh Misra --- docs/docs.json | 4 ++-- docs/posthog.js | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 docs/posthog.js diff --git a/docs/docs.json b/docs/docs.json index d7e0db57f..85d92de17 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -9,8 +9,8 @@ }, "favicon": "/favicon.ico", "integrations": { - "intercom": { - "appId": "ljxo1nzr" + "posthog": { + "apiKey": "phc_aUO790jHd7z1SXwsYCz8dRApxueplZlZWeDSpKc5hol" } }, "navigation": { diff --git a/docs/posthog.js b/docs/posthog.js deleted file mode 100644 index e84504c70..000000000 --- a/docs/posthog.js +++ /dev/null @@ -1,6 +0,0 @@ -!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 yi Fr Mr mi Rr Or capture Li calculateEventProperties Dr register register_once register_for_session unregister unregister_for_session zr 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 Nr jr createPersonProfile Ur Tr Hr 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 Ar debug L Lr getPageViewId captureTraceFeedback captureTraceMetric $r".split(" "),n=0;n