Skip to content

Commit 5e3dc1b

Browse files
authored
Merge pull request #2084 from appwrite/anayltics-hotfixes
remove route groups
2 parents 8656549 + 68b9b03 commit 5e3dc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/actions/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export type TrackEventArgs = { name: string; data?: object };
5959
export const trackEvent = (eventArgs?: string | TrackEventArgs): void => {
6060
if (!eventArgs || ENV.TEST) return;
6161

62-
const path = page.route.id ?? '';
62+
const path = page.route.id?.replace(/\(([^()]*)\)/g, '') ?? '';
6363
const name = typeof eventArgs === 'string' ? eventArgs : eventArgs.name;
6464
const data = typeof eventArgs === 'string' ? { path } : { ...eventArgs.data, path };
6565

0 commit comments

Comments
 (0)