isc30 / blazor-analytics

Blazor extensions for Analytics: Google Analytics, GTAG, ...
MIT License
146 stars 40 forks source link

About Blazor server side #29

Open fuyunekojima opened 3 years ago

fuyunekojima commented 3 years ago

When I'm monitoring the "real time" of Google Analytics, it looks like the NavLink transitions are not being tracked. Only when I refresh the page in the browser, the page views are tracked. Is this normal? Also, is there a solution?

isc30 commented 3 years ago

Hi, are you using the NavigationTracker component next to the router?

image

fuyunekojima commented 3 years ago

Yes, I proceeded as per the README.

isc30 commented 3 years ago

There is a demo in the repo, please check that your setup looks the same.

If you are still having the issue, please create a dummy repo that I can analyze to help

El dom., 27 dic. 2020 1:21, HachiChan notifications@github.com escribió:

Yes, I proceeded as per the README.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/isc30/blazor-analytics/issues/29#issuecomment-751410283, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSOOCZYRWG2SEDQS7MX3ODSWZ4ZFANCNFSM4U5TGSMA .

MathieuDR commented 3 years ago

I'm also using this package, using Blazor Server, I'm pretty new to Google analytics / Tags. For some reason I don't receive the events / navigations in my google analytics, which is configured using GTAG.

If I look at window.dataLayer I see everything is tracked there, and working as expected. I'm unsure what's going wrong here though.

if I look at window.gtag, the only function there is the datalayer push, am I missing something? @isc30

I see that the GTAG script automatically includes this script as well (as per my configuration in GTAG I suppose) http://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX&l=dataLayer&cx=c perhaps this is why something is going awry?