We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac3884b commit faf66a4Copy full SHA for faf66a4
docs/docusaurus/docusaurus.config.js
@@ -31,8 +31,8 @@ module.exports = {
31
apiKey: process.env.POSTHOG_API_KEY,
32
enableInDevelopment: false,
33
debug: false,
34
- // pageviews are handled by the web-tracking.js script
35
- capture_pageview: false,
+ // Use history_change for SPA pageview tracking
+ capture_pageview: 'history_change',
36
}
37
],
38
@@ -43,10 +43,6 @@ module.exports = {
43
async: true,
44
defer: true
45
},
46
- {
47
- src: '/scripts/web-tracking.js',
48
- async: true
49
- },
50
{
51
src: 'https://fast.wistia.net/assets/external/E-v1.js',
52
async: true
docs/docusaurus/static/scripts/web-tracking.js
0 commit comments