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.
1 parent 2f64c49 commit ef95eadCopy full SHA for ef95ead
packages/common/src/utils/analytics/vero.ts
@@ -7,13 +7,6 @@ const _veroq: any[] = [
7
8
global.veroq = _veroq;
9
10
-export const trackPageview = () => {
11
- _veroq.push(['trackPageview']);
12
-};
13
-
14
-// Already start tracking the first pageview
15
-trackPageview();
16
17
/**
18
* For some reason vero doesn't call it, so we do it for them.
19
*/
@@ -26,6 +19,14 @@ function processArray() {
26
}
27
20
28
21
22
+export const trackPageview = () => {
23
+ _veroq.push(['trackPageview']);
24
+ processArray();
25
+};
+
+// Already start tracking the first pageview
+trackPageview();
29
30
function loadScript() {
31
return new Promise((resolve, reject) => {
32
const script = document.createElement('script');
0 commit comments