You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/analytics/src/client/utils.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,9 @@ export function parseDataProps(settings?: SimpleAnalyticsProps) {
32
32
}
33
33
34
34
if(!isProduction()){
35
-
console.log("Simple Analytics is disabled by default in development and preview environments, enable it by setting NEXT_PUBLIC_ENABLE_ANALYTICS_IN_DEV=1 in your environment");
35
+
console.log(
36
+
"Simple Analytics is disabled by default in development and preview environments, enable it by setting NEXT_PUBLIC_ENABLE_ANALYTICS_IN_DEV=1 in your environment",
@@ -43,11 +49,13 @@ export async function trackPageview(options: TrackPageviewOptions) {
43
49
}
44
50
45
51
if(!isProduction()){
46
-
console.log("Simple Analytics is disabled by default in development and preview environments, enable it by setting ENABLE_ANALYTICS_IN_DEV=1 in your environment");
52
+
console.log(
53
+
"Simple Analytics is disabled by default in development and preview environments, enable it by setting ENABLE_ANALYTICS_IN_DEV=1 in your environment",
54
+
);
47
55
return;
48
56
}
49
57
50
-
if(!(awaitisIndexedRoute(path))){
58
+
if(!(awaitisValidPageview(path))){
51
59
return;
52
60
}
53
61
@@ -68,7 +76,10 @@ export async function trackPageview(options: TrackPageviewOptions) {
0 commit comments