You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to migrate from Plausible to Umami Cloud and noticed that Plausible advice us to add this code: window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) } which allows any call to plausible() to 1) not fail if the 3rd-party script cannot be loaded 2) start collecting data even if the 3rd-party script is not loaded yet.
I am using Next.js and the call to umami.track() (before plausible()) that I am using in the 404 pages is not failing because umami is not loaded yet. I mentioned dataLayer in the title because Google Tag Manager/Google Analytics have the same concept of queue.
Anything similar in Umami? I could not find it in the docs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to migrate from Plausible to Umami Cloud and noticed that Plausible advice us to add this code:
window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
which allows any call toplausible()
to 1) not fail if the 3rd-party script cannot be loaded 2) start collecting data even if the 3rd-party script is not loaded yet.I am using Next.js and the call to
umami.track()
(beforeplausible()
) that I am using in the 404 pages is not failing because umami is not loaded yet. I mentioneddataLayer
in the title because Google Tag Manager/Google Analytics have the same concept of queue.Anything similar in Umami? I could not find it in the docs.
Beta Was this translation helpful? Give feedback.
All reactions