Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible double hit with SSR #3

Open
IlCallo opened this issue May 9, 2022 · 1 comment
Open

Possible double hit with SSR #3

IlCallo opened this issue May 9, 2022 · 1 comment

Comments

@IlCallo
Copy link
Member

IlCallo commented May 9, 2022

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") {

@IlCallo
Copy link
Member Author

IlCallo commented May 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant