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

WASM auto track

Open 3cStudios opened this issue 4 years ago • 1 comments

I followed the setup info you provided.

I added NavigationTracker to the App.Razor

Sorry, there's nothing at this address.

and I added the JS to index.html

I added the service to Program.cs of the client

builder.Services.AddGoogleAnalytics("XXXXXXXXX");

But I am still not getting individual page view info in Google Analytics. It just registers the application was loaded/accessed.

I also experimented with

await Analytics.TrackEvent("PageView", null, "PageName");

in a couple of pages to see if calling the specific event would help but no joy.

Any suggestions or recommendations ?

3cStudios avatar Aug 10 '21 13:08 3cStudios

Also just experienced this issue with the TractEvent() method. I'm on a hosted WASM app. Getting page views, but track event does not show up. Any help would be great!

todd-urbo avatar Aug 11 '21 13:08 todd-urbo