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
using System.Configuration; | |
using System.Linq; | |
using System.Net; | |
using System.Web; | |
using System.Web.Hosting; | |
using Episerver.Marketing.Common.Helpers; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Tracking.Commerce.Data; | |
using EPiServer.Tracking.Core; | |
using EPiServer.Tracking.PageView; |
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
public static void TrackEmailClick(HttpContextBase httpContext, EPiServer.Tracking.Core.ITrackingService trackingService) | |
{ | |
try | |
{ | |
var email = GetCurrentUserEmail(); | |
// If you know the users name and/or additional information | |
// like company name it's also possible to associate here | |
var userData = new UserData() { Name = email, Email = email }; | |
var trackingData = new TrackingData<object> | |
{ |
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
'use strict'; | |
// --------------- Helpers that build all of the responses ----------------------- | |
var http = require('http'); | |
var axios = require('axios'); | |
var striptags = require('striptags'); | |
function buildSpeechletResponse(title, output, repromptText, shouldEndSession) { | |
return { |
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
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Data.SqlClient; | |
using System.IO; | |
using david_tec.Models.Blocks; | |
using david_tec.Models.Pages; | |
using EPi.Blog.Templates.PlugIn; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Core.Html.StringParsing; |
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
using EPiServer.ServiceLocation; | |
using EPiServer.Tracking.Core; | |
namespace InsightScopes.Business.ChangeScope | |
{ | |
[ServiceConfiguration(ServiceType = typeof(ITrackingDataInterceptor), Lifecycle = ServiceInstanceScope.Singleton)] | |
public class CustomScopeInterceptor : ITrackingDataInterceptor | |
{ | |
public int SortOrder => int.MaxValue; // Ensure the interceptor fires last |
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
using Newtonsoft.Json.Linq; | |
using RestSharp; | |
namespace InsightClient | |
{ | |
class Program | |
{ | |
private static string deviceId = "<deviceid>"; // retrive from _madid cookie value | |
private static string apiRootUrl = "<apiRootUrl>"; // get from Insight / Profile store developer portal | |
private static string subscriptionKey = "<subscriptionKey>"; // get from Insight / Profile store developer portal |
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
using System.Web; | |
using EPiServer.Core; | |
using EPiServer.Tracking.Core; | |
namespace AlloyDemoKit.Business.Insight | |
{ | |
public class TrackingExample | |
{ | |
private readonly ITrackingService _trackingService; | |
private readonly HttpContextBase _httpContextBase; |
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
using System.ComponentModel.DataAnnotations; | |
using EPiServer.Core; | |
using EPiServer.PlugIn; | |
namespace TokenisedContent.Features.TokenisedContent | |
{ | |
[PropertyDefinitionTypePlugIn] | |
public class ReplacementTokenProperty : PropertyList<ReplacementToken> { } | |
public class ReplacementToken |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Campaign.CouponServices.Interfaces; | |
using EPiServer.Commerce.Marketing; | |
using EPiServer.Reference.Commerce.Site.Features.CampaignCoupons.Discount; | |
using EPiServer.Security; | |
using Mediachase.Commerce.Security; | |
namespace EPiServer.Reference.Commerce.Site.Features.CampaignCoupons.CouponFilter |
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
using EPiServer.Approvals; | |
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using EPiServer.Framework; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Framework.Initialization; | |
using EPiServer.Security; | |
namespace ApprovalSequences |