-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #452 from Bram1903/GoogleAnalyticsConfigurator
Added: Google Analytics Configurator
- Loading branch information
Showing
5 changed files
with
66 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
namespace CleanArchitecture.Blazor.Application.Common.Configurations; | ||
|
||
/// <summary> | ||
/// Configuration wrapper for the privacy section | ||
/// Represents the privacy settings for the application. | ||
/// </summary> | ||
public class PrivacySettings | ||
{ | ||
/// <summary> | ||
/// Privacy key constraint | ||
/// Gets the unique key to identify the PrivacySettings configuration. | ||
/// </summary> | ||
public const string Key = nameof(PrivacySettings); | ||
|
||
/// <summary> | ||
/// When enabled, the logs will include client IP addresses | ||
/// Gets or sets a value indicating whether the client IP addresses should be logged. | ||
/// </summary> | ||
public bool LogClientIpAddresses { get; set; } = true; | ||
|
||
/// <summary> | ||
/// When enabled, the logs will include the client agents | ||
/// Gets or sets a value indicating whether the client agents (user agents) should be logged. | ||
/// </summary> | ||
public bool LogClientAgents { get; set; } = true; | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether Google Analytics should be used for tracking. | ||
/// </summary> | ||
public bool UseGoogleAnalytics { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Google Analytics tracking key. | ||
/// </summary> | ||
/// <remarks> | ||
/// If <see cref="UseGoogleAnalytics" /> is set to true, this property must contain a valid Google Analytics tracking | ||
/// key. | ||
/// </remarks> | ||
public string? GoogleAnalyticsKey { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters