try useBeacon so that events will trigger even when a new page is loaded