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

Analytics auto tracking #8

Open
xXBuilderBXx opened this issue Dec 20, 2019 · 9 comments
Open

Analytics auto tracking #8

xXBuilderBXx opened this issue Dec 20, 2019 · 9 comments
Labels
enhancement Existing feature improvements

Comments

@xXBuilderBXx
Copy link

xXBuilderBXx commented Dec 20, 2019

Just found out that someone made a javascript for google analytics which helps single page apps like blazor to correctly tracks urls you visit, external links you open and other features here https://github.com/googleanalytics/autotrack it works really well for me now

@isc30
Copy link
Owner

isc30 commented Dec 20, 2019

Yes! it works really similarly (by caching the gtag in the global scope and hooking into stuff).
The reason I didn't go with it it's because I wanted to have it open to integrate extra functionality and control from C# (like loading plugins easily, etc).
You can see how I expose gtag here and how I get it attached to the navigation system here.
The idea is that you have navigation decoupled from GoogleAnalytics, so you could create a manual tracker and have full control at any point.

Do you have any nice feature from autotrack that I could also add here?

@xXBuilderBXx
Copy link
Author

Yea i saw some of the code when i was checking it out but it would be nice if you could add options for the stuff like outbound link tracking. I wanted to get this working for .net core 3.1 but it's a little broken atm #7 but nice work on this.

@isc30
Copy link
Owner

isc30 commented Dec 21, 2019

I can't know what's broken in #7 since the DemoApp works well for me. If you could point out that issue I can fix it asap and then we can have a PR for outbound etc

@isc30
Copy link
Owner

isc30 commented Feb 26, 2020

ServerSide Blazor is fixed now. We should be able to do this now 😄

@isc30
Copy link
Owner

isc30 commented Sep 20, 2020

Hi, are you still interested on this feature?

@isc30 isc30 added the enhancement Existing feature improvements label Sep 20, 2020
@xXBuilderBXx
Copy link
Author

I would not mind it but as long as the main analytics part works it's fine

@isc30
Copy link
Owner

isc30 commented Sep 20, 2020

Cool, there is a big change coming to track events, can be implemented easily after it 👍

@defcon8
Copy link

defcon8 commented Feb 2, 2021

Yes we need this!!

@isc30
Copy link
Owner

isc30 commented Feb 3, 2021

Hi @defcon8 which feature do you need? Is it outbound links?

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

No branches or pull requests

3 participants