NTP-71625| added attributes in clickstreams

This commit is contained in:
aishwarya.srivastava
2025-06-11 15:56:04 +05:30
parent b340319680
commit 4226f985cf

View File

@@ -10,12 +10,10 @@ import { getGoogleMapUrl, getGoogleMapUrlForAddressText } from '@components/utli
import { addClickstreamEvent } from '@services/clickstreamEventService';
import { CLICKSTREAM_EVENT_NAMES } from '@common/Constants';
import Tag, { TagVariant } from '@rn-ui-lib/components/Tag';
import { useAppSelector } from '@hooks';
const OpenMapOptionsPopUp = (props: IOpenMapOptionsPopUpProps) => {
const { latitude, longitude, addressString, isGeoCoordinatesReliable, caseId, rank, referenceId } = props;
const caseDetails = useAppSelector((state) => state?.allCases?.caseDetails?.[caseId]);
const { latitude, longitude, addressString, isGeoCoordinatesReliable, caseId, rank = '', referenceId } = props;
const handleSearchByGeolocation = () => {
const mapUrl = getGoogleMapUrl(latitude, longitude);
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_LAT_LONG_OPTION_CLICKED, {
@@ -31,7 +29,7 @@ const OpenMapOptionsPopUp = (props: IOpenMapOptionsPopUpProps) => {
const mapUrl = getGoogleMapUrlForAddressText(addressString);
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_SEARCH_ADDRESS_OPTION_CLICKED, {
attempted_at_address: referenceId,
address_rank: rank ? rank: '',
address_rank: rank,
caseId
});
if (!mapUrl) return;