Skip to content

Commit

Permalink
Merge branch 'react-ga4' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramin Farhadi authored and Ramin Farhadi committed Jul 17, 2024
2 parents 85be627 + 23d7191 commit 6f99b5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function App() {
});

// Send pageview with a custom path
ReactGA.send({ hitType: "pageview", page: "/", title: "UCF Campus Map" });
ReactGA.send({ hitType: "pageview", page: "/map/", title: "UCF Campus Map" });
}

const initialLng = -81.200142;
Expand Down Expand Up @@ -225,9 +225,7 @@ function App() {
category: "Link",
action: "click",
label: `${location!.title.rendered}`,
});

console.log(location!.title.rendered);
});
html = `<a class="location-link" href="${location!.link}" onClick="{() => trackLinkClick(${location!.title.rendered}) }" target="_blank">${feature?.properties?.Name}</a>`;
} else {
html = `<span class="location-link">${feature?.properties?.Name}</span>`
Expand All @@ -238,7 +236,6 @@ function App() {
};

const onSearchResultClick = (result: GeoJsonProperties) => {
// console.log(result);
mapRef.current!.flyTo({
center: [
result!.properties.Longitude,
Expand Down
2 changes: 1 addition & 1 deletion src/components/MapMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default function MapMenu(props: MapMenuProps) {
'parking': !props.visibility.accessibility.parking
}})
}
> <img width={15} alt='item' src={ props.visibility.accessibility.parking ? checked : unchecked } />
> <img width={15} alt='' src={ props.visibility.accessibility.parking ? checked : unchecked } />
&nbsp;
Parking
</a>
Expand Down

0 comments on commit 6f99b5f

Please sign in to comment.