fix: track origin (#4700)

fix: add origin
This commit is contained in:
Zach Pomerantz 2022-09-22 14:02:57 -05:00 committed by GitHub
parent 45682ca59e
commit be64c03d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,8 @@ export const Trace = memo(
useEffect(() => {
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.
// eslint-disable-next-line react-hooks/exhaustive-deps