It seems under certain circumstances (which I can't figure out yet), the useUmami() returns track defined (which means that loaded equals true), but in the implementation of it, window.umami.track throws an error, because window.umami is not defined.
I don't know if these happens because the analytics script is blocked, but somehow it is marked as loaded. See entry report. This may need to be solved on umami-analytics-next
Description
It seems under certain circumstances (which I can't figure out yet), the
useUmami()
returnstrack
defined (which means thatloaded
equals true), but in the implementation of it,window.umami.track
throws an error, becausewindow.umami
is not defined.I don't know if these happens because the analytics script is blocked, but somehow it is marked as loaded. See entry report. This may need to be solved on umami-analytics-next
Steps to reproduce
Environment
Proposed fix