Skip to content

Commit

Permalink
Get GA tracker id from config instead of hardcoding it
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Feb 7, 2024
1 parent 61f29c9 commit 7831982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InitializrService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddTransient<IProjectGenerator, NetCoreToolProjectGenerator>();
services.AddAllActuators();
services.ActivateActuatorEndpoints();
services.AddGoogleAnalyticsTracker(trackerOptions => { trackerOptions.TrackerId = "UA-114912118-2"; });
services.AddGoogleAnalyticsTracker(trackerOptions => { trackerOptions.TrackerId = Configuration.GetValue<string>("GoogleAnalytics:TrackerId"); });
services.AddControllers().AddJsonOptions(jsonOptions =>
{
jsonOptions.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
Expand Down

0 comments on commit 7831982

Please sign in to comment.