observablehq / plot

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

Patch analytics pageLoad event for now #2043

Closed visnup closed 6 months ago

visnup commented 6 months ago

This actually isn't correct either, but restores the previous behavior that it seems to rely on. The current code watches router.route, but after an async import which means it actually misses the first actual page load and doesn't fire anything. A subsequent navigation counts as the first pageLoad.

I'll have a better fix soon, but wanted to restore the previous behavior in the meantime.