Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit af9a884

Browse files
committed
chore: update telemetry endpoint
Signed-off-by: Toma Puljak <[email protected]>
1 parent 0f92521 commit af9a884

File tree

1 file changed

+51
-52
lines changed

1 file changed

+51
-52
lines changed

src/components/PostHog.astro

Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,53 @@
11
<script is:inline>
2-
!(function (t, e) {
3-
var o, n, p, r
4-
e.__SV ||
5-
((window.posthog = e),
6-
(e._i = []),
7-
(e.init = function (i, s, a) {
8-
function g(t, e) {
9-
var o = e.split('.')
10-
2 == o.length && ((t = t[o[0]]), (e = o[1])),
11-
(t[e] = function () {
12-
t.push([e].concat(Array.prototype.slice.call(arguments, 0)))
13-
})
14-
}
15-
;((p = t.createElement('script')).type = 'text/javascript'),
16-
(p.crossOrigin = 'anonymous'),
17-
(p.async = !0),
18-
(p.src =
19-
s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') +
20-
'/static/array.js'),
21-
(r = t.getElementsByTagName('script')[0]).parentNode.insertBefore(
22-
p,
23-
r
24-
)
25-
var u = e
26-
for (
27-
void 0 !== a ? (u = e[a] = []) : (a = 'posthog'),
28-
u.people = u.people || [],
29-
u.toString = function (t) {
30-
var e = 'posthog'
31-
return 'posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e
32-
},
33-
u.people.toString = function () {
34-
return u.toString(1) + '.people (stub)'
35-
},
36-
o =
37-
'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_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId'.split(
38-
' '
39-
),
40-
n = 0;
41-
n < o.length;
42-
n++
2+
!(function (t, e) {
3+
var o, n, p, r
4+
e.__SV ||
5+
((window.posthog = e),
6+
(e._i = []),
7+
(e.init = function (i, s, a) {
8+
function g(t, e) {
9+
var o = e.split('.')
10+
2 == o.length && ((t = t[o[0]]), (e = o[1])),
11+
(t[e] = function () {
12+
t.push([e].concat(Array.prototype.slice.call(arguments, 0)))
13+
})
14+
}
15+
;((p = t.createElement('script')).type = 'text/javascript'),
16+
(p.crossOrigin = 'anonymous'),
17+
(p.async = !0),
18+
(p.src =
19+
s.api_host.replace('.i.posthog.com', '-assets.i.posthog.com') +
20+
'/static/array.js'),
21+
(r = t.getElementsByTagName('script')[0]).parentNode.insertBefore(
22+
p,
23+
r
4324
)
44-
g(u, o[n])
45-
e._i.push([i, s, a])
46-
}),
47-
(e.__SV = 1))
48-
})(document, window.posthog || [])
49-
posthog.init('phc_G6W6WjTCvn1EW7mYGaWaW80eunvfu6ID7asCbj4Ua7a', {
50-
api_host: 'https://eu.i.posthog.com',
51-
person_profiles: 'always',
52-
})
53-
</script>
54-
25+
var u = e
26+
for (
27+
void 0 !== a ? (u = e[a] = []) : (a = 'posthog'),
28+
u.people = u.people || [],
29+
u.toString = function (t) {
30+
var e = 'posthog'
31+
return 'posthog' !== a && (e += '.' + a), t || (e += ' (stub)'), e
32+
},
33+
u.people.toString = function () {
34+
return u.toString(1) + '.people (stub)'
35+
},
36+
o =
37+
'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_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId'.split(
38+
' '
39+
),
40+
n = 0;
41+
n < o.length;
42+
n++
43+
)
44+
g(u, o[n])
45+
e._i.push([i, s, a])
46+
}),
47+
(e.__SV = 1))
48+
})(document, window.posthog || [])
49+
posthog.init('phc_bYtEsdMDrNLydXPD4tufkBrHKgfO2zbycM30LOowYNv', {
50+
api_host: 'https://us.i.posthog.com',
51+
person_profiles: 'identified_only', // or 'always' to create profiles for anonymous users as well
52+
})
53+
</script>

0 commit comments

Comments
 (0)