Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  2. <sitecore>
  3. <pipelines>
  4. <processItem>
  5. <processor type="YourNamespace.ProcessProfileProcessor,YourAssembly"
  6. patch:instead="processor[@type='Sitecore.Analytics.Pipelines.ProcessItem.ProcessProfiles, Sitecore.Analytics']"/>
  7. </processItem>
  8. </pipelines>
  9. </sitecore>
  10. </configuration>
  11.  
  12. public class ProcessProfileProcessor : ProcessItemProcessor
  13. {
  14. public override void Process(ProcessItemArgs args)
  15. {
  16. Assert.ArgumentNotNull((object) args, "args");
  17.  
  18. foreach (TrackingField trackingParameter in args.TrackingParameters)
  19. {
  20. TrackingProcessor.ProcessProfiles(args.Interaction, trackingParameter);
  21. }
  22. }
  23. }
  24.  
  25. public static class TrackingProcessor
  26. {
  27. public static void ProcessProfiles(CurrentInteraction interaction, TrackingField field)
  28. {
  29. // Your Logic goes here.
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement