This file contains hidden or 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 Sitecore.Abstractions; | |
using Sitecore.Analytics.Pipelines.StartTracking; | |
using Sitecore.Data; | |
namespace YOURNAMESPACE.Analytics.Pipelines.StartTracking | |
{ | |
public class ProcessQueryStringCampaignEx : ProcessQueryStringCampaign | |
{ | |
public ProcessQueryStringCampaignEx() : base() { } |
This file contains hidden or 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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore role:require="Standalone or ContentDelivery or ContentManagement"> | |
<pipelines> | |
<startTracking> | |
<!-- Patched to handle instances where campaign is expired but can still be triggered --> | |
<processor type="Sitecore.Analytics.Pipelines.StartTracking.ProcessQueryStringCampaign, Sitecore.Analytics"> | |
<patch:attribute name="type">YOURNAMESPACE.Analytics.Pipelines.StartTracking.ProcessQueryStringCampaignEx, YOURNAMESPACE.Analytics</patch:attribute> | |
</processor> | |
</startTracking> | |
</pipelines> |
This file contains hidden or 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
Set-Location master: | |
function Get-ItemBasedOnTemplate { | |
param( | |
[string]$TemplateId | |
) | |
$queue = New-Object System.Collections.Queue | |
$processedLookup = New-Object System.Collections.Generic.HashSet[string] | |
if(-not(Test-Path -Path "master:$($TemplateId)")) { return } |
OlderNewer