Skip to content

Instantly share code, notes, and snippets.

@BillCacy
Created October 20, 2020 22:58
Show Gist options
  • Save BillCacy/0a9e14413a370c61fd75345e741f6ef3 to your computer and use it in GitHub Desktop.
Save BillCacy/0a9e14413a370c61fd75345e741f6ef3 to your computer and use it in GitHub Desktop.
Patch file for overriding the Sitecore.Analytics.Pipelines.StartTracking.ProcessQueryStringCampaign
<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>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment