dreamonkey/quasar-app-extension-tracking

Possible double hit with SSR

Opened this issue · 1 comments

Not sure if this actually happens, but when we render a Quasar SSR it may be possible we are firing a page view event, which may then be fired again when executing the app on the client side
In this case, we probably want to avoid executing the tracking script on server and only execute it when on the client

This can be done by adding another short circuit condition here:

if (process.env.NODE_ENV === "development") {

This doesn't seem to hit while doing SSG generation which use SSR rendering, must be tested on a deployed SSR app