Custom Event not getting captured after the initial one for SPA
I'm trying to capture route changes as page views for a react SPA. I have the Adobe Analytics extension installed, and
1. Added custom code in my app that dispatches an event named `analytics` every time the route changes. It's set on the window object. I've verified this works.
2. Set up Rules with Event: Core - Custom Event, Actions: Set Variables, Send Beacon, Clear Variables.
3. In Rules - Event - Custom Event, the Event Type input is `analytics` (the same as #1) for any element.
4. In Rules - Set Variables, I have Page URL set in the Additional Settings.
5. I also have a Data Element, with Core extension and Data Element Type as Page info - URL attribute.
When I check the network tab in Chrome, I see `s` getting sent only on the initial page load, but not when the route changes. Also, when I check what `s.pageURL` is set to be in the console, it's always the initial URL even when it has changed. I've attached screenshots.




