We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
url
1 parent f7000af commit 3959a4cCopy full SHA for 3959a4c
src/plugins/docusaurus-plugin-segment/segment.js
@@ -29,15 +29,15 @@ function getOneTrustConsentContext() {
29
}
30
31
export default ExecutionEnvironment.canUseDOM ? {
32
- onRouteUpdate({ location }) {
+ onRouteUpdate() {
33
// Don't track page views on development
34
if (process.env.NODE_ENV === 'production' && window.analytics) {
35
window.analytics.page({
36
app: 'docs',
37
page_type: 'DOCS_PAGE',
38
- path: location.pathname,
39
- url: location.href,
40
- search: location.search,
+ path: window.location.pathname,
+ url: window.location.href,
+ search: window.location.search,
41
...getOneTrustConsentContext(),
42
});
43
0 commit comments