Skip to content

Blazor extensions for Analytics: Google Analytics, GTAG, ...

License

Notifications You must be signed in to change notification settings

minhhieugma/blazor-google-analytics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Because I would like to add some more features what would break the orginal ideas of isc30

Blazor extensions for Analytics: Google Analytics, GTAG, ...

Blazor Version: 3.0.0-preview6.19307.2

NuGet Package

https://www.nuget.org/packages/Blazor-Google-Analytics

NuGet Package (Original package - Ivan Sanz Carasa (isc30))

https://nuget.org/packages/Blazor-Analytics

Server Side Rendering

The Google Analytics and Google Tag Manager will be added at Server Side Rendering time so that there is no latency time

Configuration

Google Analytics, GTAG

Add the GoogleAnalytics component below your Router in App.razor.
The tracker listens to every navigation change while it's rendered on a page.

<Router AppAssembly="typeof(App).Assembly" />
<Blazor.Analytics.GoogleAnalytics.GoogleAnalyticsComponent TrackingId="UA-XXXXXXXXX-X" ContainerId="GTM-XXXXXXX" />

Remove ContainerId attribute if you don't use Google Tag Manager

About

Blazor extensions for Analytics: Google Analytics, GTAG, ...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 52.8%
  • HTML 30.1%
  • CSS 15.9%
  • TypeScript 1.2%