diff --git a/ProjectLighthouse/Pages/Layouts/BaseLayout.cshtml b/ProjectLighthouse/Pages/Layouts/BaseLayout.cshtml index 4632137e..2295cea3 100644 --- a/ProjectLighthouse/Pages/Layouts/BaseLayout.cshtml +++ b/ProjectLighthouse/Pages/Layouts/BaseLayout.cshtml @@ -51,6 +51,19 @@ + + @if (ServerSettings.Instance.GoogleAnalyticsEnabled) + { + + + + }
diff --git a/ProjectLighthouse/Types/Settings/ServerSettings.cs b/ProjectLighthouse/Types/Settings/ServerSettings.cs index eabf41c4..e4caf307 100644 --- a/ProjectLighthouse/Types/Settings/ServerSettings.cs +++ b/ProjectLighthouse/Types/Settings/ServerSettings.cs @@ -63,7 +63,7 @@ namespace LBPUnion.ProjectLighthouse.Types.Settings } } - public const int CurrentConfigVersion = 10; // MUST BE INCREMENTED FOR EVERY CONFIG CHANGE! + public const int CurrentConfigVersion = 11; // MUST BE INCREMENTED FOR EVERY CONFIG CHANGE! #region Meta @@ -102,5 +102,9 @@ namespace LBPUnion.ProjectLighthouse.Types.Settings public int EntitledSlots { get; set; } = 50; public int ListsQuota { get; set; } = 50; + + public bool GoogleAnalyticsEnabled { get; set; } = false; + + public string GoogleAnalyticsId { get; set; } = ""; } } \ No newline at end of file