From 450980d9820c72df149c4003d9b7a1fb0e0c301a Mon Sep 17 00:00:00 2001 From: adueck Date: Wed, 1 Feb 2023 23:33:45 +0500 Subject: [PATCH] show pathnames for example edits --- src/components/phrase-diagram/EditableEPEx.tsx | 2 +- src/components/phrase-diagram/EditableVPEx.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/phrase-diagram/EditableEPEx.tsx b/src/components/phrase-diagram/EditableEPEx.tsx index 911b0e8..45203a0 100644 --- a/src/components/phrase-diagram/EditableEPEx.tsx +++ b/src/components/phrase-diagram/EditableEPEx.tsx @@ -25,7 +25,7 @@ function EditableEPEx({ children, opts, hideOmitSubject, noEdit }: { children: T if (isProd && !(user?.admin)) { ReactGA.event({ category: "Example", - action: "edit EPex", + action: `edit EPex - ${window.location.pathname}`, label: "edit EPex" }); } diff --git a/src/components/phrase-diagram/EditableVPEx.tsx b/src/components/phrase-diagram/EditableVPEx.tsx index 509608c..372fd74 100644 --- a/src/components/phrase-diagram/EditableVPEx.tsx +++ b/src/components/phrase-diagram/EditableVPEx.tsx @@ -34,7 +34,7 @@ function EditableVPEx({ children, opts, formChoice, noEdit, length, mode, sub, a if (isProd && !(user?.admin)) { ReactGA.event({ category: "Example", - action: "edit VPex", + action: `edit VPex - ${window.location.pathname}`, label: "edit VPex" }); }