Skip to content

WASM auto track #43

@ghost

Description

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

<script src="_content/Blazor-Analytics/blazor-analytics.js"></script>

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions