Skip to content

Commit 94fcbaf

Browse files
authored
Revert "Analytics (#931)"
This reverts commit e559b20.
1 parent e559b20 commit 94fcbaf

File tree

5 files changed

+28
-17
lines changed

5 files changed

+28
-17
lines changed

docs/.vuepress/client.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ export default defineClientConfig({
166166
version: esData?.version,
167167
category: esData?.category,
168168
});
169-
if (window && window.posthog) {
169+
const a = window.analytics;
170+
if (a) {
170171
setTimeout(() => {
171-
window.posthog.capture('$pageview', {
172+
a.page({
172173
site: "docs",
173174
url: window.location.origin + to.fullPath,
174175
title: to.meta.t,

docs/.vuepress/config.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,10 @@ export default defineUserConfig({
109109
async: true,
110110
}],
111111

112-
// Segment
113-
// ['script', { src: '/js/snippet.js' }],
114-
115-
// Business Institution 247 “consent‑only” loader
116-
['script', {
112+
['script', {src: '/js/snippet.js'}],
113+
114+
// Business Institution 247 “consent‑only” loader
115+
['script', {
117116
type: 'text/plain',
118117
'data-cookiecategory': 'marketing',
119118
src: 'https://secure.businessintuition247.com/js/sc/264384.js',
@@ -128,8 +127,8 @@ export default defineUserConfig({
128127
'data-project-logo': '/logo-white.png'
129128
}],
130129

131-
// Reo
132-
['script', { src: "/js/reo.js"}],
130+
// CommonRoom
131+
['script', {src: "/js/commonRoom.js"}],
133132

134133
// CSS override to hide the modal mask and wrapper entirely
135134
['style', {}, `

docs/.vuepress/lib/usePosthog.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import posthog from 'posthog-js';
33
export function usePostHog() {
44
try {
55
posthog.init('phc_DeHBgHGersY4LmDlADnPrsCPOAmMO7QFOH8f4DVEVmD', {
6-
api_host: 'https://phog.kurrent.io',
7-
capture_pageview: false
6+
api_host: 'https://phog.kurrent.io'
87
});
98
} catch (e) {
109
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(function () {
2+
if (typeof window === 'undefined') return;
3+
if (typeof window.signals !== 'undefined') return;
4+
var script = document.createElement('script');
5+
script.src = 'https://cdn.cr-relay.com/v1/site/da9bc552-0721-4931-aae9-9706006d2986/signals.js';
6+
script.async = true;
7+
window.signals = Object.assign(
8+
[],
9+
['page', 'identify', 'form'].reduce(function (acc, method) {
10+
acc[method] = function () {
11+
signals.push([method, arguments]);
12+
return signals;
13+
};
14+
return acc;
15+
}, {})
16+
);
17+
document.head.appendChild(script);
18+
})();

docs/.vuepress/public/js/reo.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)