Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
VeXHarbinger committed Feb 17, 2024
2 parents 21e40b4 + 20c0b8b commit d17e9d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlazorAnalytics/BlazorAnalyticsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ public async Task Initialize()

if (HasToStartFacebookPixel())
{
await module.InvokeAsync<string>("InitializeFacebookPixel", _FBPID);
await module.InvokeAsync<string>("InitializePixel", _FBPID);
}

if (HasToStartGoogleAnalytics())
{
await module.InvokeAsync<string>("InitializeGoogleAnalytics", _GAID);
await module.InvokeAsync<string>("InitializeGA", _GAID);
}

if (HasToStartGTM())
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Example:

# How to trigger an Analytics Event

[Inject]
protected IBlazorAnalytics Analytics { get; set; }

private void MyFunction()
{
Analytics.LogEvent("button_clicked", "Some Value");
}

# Blazor Analytics

[![GitHub Issues](https://img.shields.io/github/issues/VeXHarbinger/BlazorAnalytics.svg)](https://github.com/VeXHarbinger/BlazorAnalytics/issues)
Expand Down

0 comments on commit d17e9d3

Please sign in to comment.