From e09a9fa8323dec8cd38e7ca19df832a28bdacd90 Mon Sep 17 00:00:00 2001 From: jvyden Date: Fri, 10 Dec 2021 14:36:03 -0500 Subject: [PATCH] Add google analytics to config --- ProjectLighthouse/Pages/Layouts/BaseLayout.cshtml | 13 +++++++++++++ ProjectLighthouse/Types/Settings/ServerSettings.cs | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) 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