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

Google Analytics ID is exposed #39

Open
amanintech opened this issue Jul 11, 2020 · 4 comments
Open

Google Analytics ID is exposed #39

amanintech opened this issue Jul 11, 2020 · 4 comments
Assignees

Comments

@amanintech
Copy link

Google Analytics ID is currently exposed in public view source code action. This was someone who can hinder the analytics and we may get wrong data.

Possible fix use component-based analytics also to target data while users move around.

@arpansac
Copy link
Contributor

This sounds super interesting. I think it being a thing of the front end, is always exposed?
Any library you suggest would make component based analytics possible? Or should we just go about the guide given on developers google?

I'm exploring too :D

@amanintech
Copy link
Author

Actually I discovered another problem with this approach. We will only be able to detect the user entering URL not the other URL's when he is roaming around like its a SPA and the page doesn't reload. This is an issue with all the SPA and the fix for this is to use a route update method to send data on route change.
I have done a similar thing in React in past but don't know much about Angular approach

This might work - https://medium.com/madhash/how-to-properly-add-google-analytics-tracking-to-your-angular-web-app-bc7750713c9e

@amanintech
Copy link
Author

give me this

@arpansac
Copy link
Contributor

All yours @amanintech

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

No branches or pull requests

2 participants