-
Notifications
You must be signed in to change notification settings - Fork 20
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
Doesn't support angular universal #4
Comments
Please provide a fix or a workaround for this like calling a function which will allow the dev to conditionally use this module if the platform is browser
|
Workaround:
|
The fix from @ishan123456789 should work in this lib. I'll get a fix published soon, but feel to send a PR if you want. |
Already stuck with two projects will surely work on it if I get time to work on it any time soon @codediodeio |
Had a similar issue here angular/universal-starter#681 |
Replace the code in the file "gtag.service.ts" with this one, rebuild the lib ...
|
The error for my is spcifically on this line:
Error: Google Analytics pageview error ReferenceError: gtag is not defined |
I'll make a PR for this one |
I added this to: function app(): express.Express But I'm getting an error, what am I doing wrong? |
Hello, any update on this issue yet? |
Since this project seems to be not maintained anymore, we took inspiration from this repository and created one that also supports SSR. You can find it here: https://github.com/bloomscorp/ngx-google-tags-manager We are using this in our projects and it is working fine. Hope this helps someone. |
After importing
GtagModule
, there is an error on runtime, even I don't usegtag
service (just import).The text was updated successfully, but these errors were encountered: