UTM for links on posts

This commit is contained in:
2020-03-04 11:55:10 +04:00
parent 8f8898e901
commit 768a0d064f
5 changed files with 79 additions and 9 deletions
+10 -1
View File
@@ -6,6 +6,8 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.Text;
using System.Web;
using Kruzya.TelegramBot.RichSiteSummary.UrchinTrackingModule;
using Telegram.Bot.Types.Enums;
namespace Kruzya.TelegramBot.RichSiteSummary.Data
@@ -28,8 +30,15 @@ namespace Kruzya.TelegramBot.RichSiteSummary.Data
protected override string ViewableUrl
{
get => Url;
get => UtmUtility.ApplyParameters(Url, new UtmParameters()
{
Source = "telegram",
Type = "rss_post",
Campaign = "subscriber",
Content = PostId.ToString()
});
}
#endregion
/// <summary>