Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #147 from poap-xyz/fix/matomo-event-title-not-unde…
Browse files Browse the repository at this point in the history
…fined

Add event to check for tracking event page view
  • Loading branch information
jm42 authored May 1, 2023
2 parents 4c7ce46 + 15dffb6 commit 538134d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function Event() {
}, []);

useEffect(() => {
if (succeededLoadingEvent() && !tableIsLoading) {
if (succeededLoadingEvent() && !tableIsLoading && event && event?.name) {
trackPageView({
href: window.location.href,
documentTitle: `POAP Gallery - Event - ${event.name}`,
Expand Down

0 comments on commit 538134d

Please sign in to comment.