Skip to content

Commit faf66a4

Browse files
authored
[MAINTENANCE] Delete CommonRoom script from docs - load Posthog directly (#11514)
1 parent ac3884b commit faf66a4

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

docs/docusaurus/docusaurus.config.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ module.exports = {
3131
apiKey: process.env.POSTHOG_API_KEY,
3232
enableInDevelopment: false,
3333
debug: false,
34-
// pageviews are handled by the web-tracking.js script
35-
capture_pageview: false,
34+
// Use history_change for SPA pageview tracking
35+
capture_pageview: 'history_change',
3636
}
3737
],
3838
],
@@ -43,10 +43,6 @@ module.exports = {
4343
async: true,
4444
defer: true
4545
},
46-
{
47-
src: '/scripts/web-tracking.js',
48-
async: true
49-
},
5046
{
5147
src: 'https://fast.wistia.net/assets/external/E-v1.js',
5248
async: true

docs/docusaurus/static/scripts/web-tracking.js

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

0 commit comments

Comments
 (0)