blazor-analytics icon indicating copy to clipboard operation
blazor-analytics copied to clipboard

About Blazor server side

Open fuyunekojima opened this issue 5 years ago • 4 comments

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?

fuyunekojima avatar Dec 16 '20 08:12 fuyunekojima

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

image

isc30 avatar Dec 16 '20 08:12 isc30

Yes, I proceeded as per the README.

fuyunekojima avatar Dec 27 '20 00:12 fuyunekojima

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 [email protected] 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 .

isc30 avatar Dec 27 '20 10:12 isc30

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?

MathieuDR avatar May 15 '21 13:05 MathieuDR