NTP-71625| added attributes in clickstreams
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user