observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.16k stars 171 forks source link

Send our own pageLoad, routeChanged events #2044

Closed visnup closed 3 months ago

visnup commented 3 months ago

Follow up to #2043.

Synchronously watch for route changes and send pageLoad or routeChanged events. Doesn't rely on the automatic pageLoad event anymore from the analytics client.

Tested locally and verified pageLoad was being sent on initial load and routeChanged sent on client side navigation.