mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
81 lines
2.9 KiB
Plaintext
81 lines
2.9 KiB
Plaintext
---
|
|
/**
|
|
* PostHog analytics with cookieless server-side hashing.
|
|
* Idle-loaded to minimize impact on page performance.
|
|
*
|
|
* Requires "Cookieless server hash mode" enabled in PostHog project settings.
|
|
*/
|
|
---
|
|
|
|
<link rel="dns-prefetch" href="/" />
|
|
<link rel="preconnect" href="/" crossorigin />
|
|
|
|
<script is:inline>
|
|
(function () {
|
|
function load() {
|
|
!(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 opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group identify setPersonProperties setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags resetGroups onFeatureFlags addFeatureFlagsHandler onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep".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("phc_5gaDOyX1jWPR1n7JAiGiHdwXwGwfsknwdj1ILI2IiBr", {
|
|
api_host: "/ph",
|
|
ui_host: "https://us.posthog.com",
|
|
defaults: "2026-01-30",
|
|
cookieless_mode: "always",
|
|
});
|
|
}
|
|
|
|
if (typeof requestIdleCallback === "function") {
|
|
requestIdleCallback(load);
|
|
} else {
|
|
setTimeout(load, 3000);
|
|
}
|
|
})();
|
|
</script>
|