Commit be64c03d authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

fix: track origin (#4700)

fix: add origin
parent 45682ca5
...@@ -44,7 +44,8 @@ export const Trace = memo( ...@@ -44,7 +44,8 @@ export const Trace = memo(
useEffect(() => { useEffect(() => {
if (shouldLogImpression) { if (shouldLogImpression) {
sendAnalyticsEvent(name ?? EventName.PAGE_VIEWED, { ...combinedProps, ...properties }) const origin = window.location.origin
sendAnalyticsEvent(name ?? EventName.PAGE_VIEWED, { ...combinedProps, ...properties, origin })
} }
// Impressions should only be logged on mount. // Impressions should only be logged on mount.
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment