We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c42f2bb commit 97885ddCopy full SHA for 97885dd
v2/src/plugins/locationInterceptor.js
@@ -1,15 +1,16 @@
1
-import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment';
+import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
2
3
export default (function() {
4
-
5
- if(!ExecutionEnvironment.canUseDOM){
+ if (!ExecutionEnvironment.canUseDOM) {
6
return null;
7
}
8
9
return {
10
onRouteUpdate() {
11
if (window.stAnalytics) {
12
- window.stAnalytics.getInstance().sendPageViewEvents();
+ const analytics = window.stAnalytics.getInstance();
+ analytics.sendPageViewEvents();
13
+ analytics.sendPageViewEventToSegment();
14
15
16
};
0 commit comments