Is a Sitecore campaign triggered as a 'live event'?












2















In Sitecore, campaigns can be created for online and offline tracking. Those campaigns can then be triggered by adding sc_camp=the-unique-id to urls in social media or on the site itself.



I want to setup a campaign and as soon as the person clicks the link with sc_camp, I want a Marketing Automation Campaign to kick in.
Currently with Sitecore 9.1 you can already add a rule in the start condition of the MA: where the contact has triggered campaign x



With goals, you have to select 'IsLiveEvent' so that the MA gets triggered during the session and not afterwards.
Can this work for campaigns?










share|improve this question



























    2















    In Sitecore, campaigns can be created for online and offline tracking. Those campaigns can then be triggered by adding sc_camp=the-unique-id to urls in social media or on the site itself.



    I want to setup a campaign and as soon as the person clicks the link with sc_camp, I want a Marketing Automation Campaign to kick in.
    Currently with Sitecore 9.1 you can already add a rule in the start condition of the MA: where the contact has triggered campaign x



    With goals, you have to select 'IsLiveEvent' so that the MA gets triggered during the session and not afterwards.
    Can this work for campaigns?










    share|improve this question

























      2












      2








      2








      In Sitecore, campaigns can be created for online and offline tracking. Those campaigns can then be triggered by adding sc_camp=the-unique-id to urls in social media or on the site itself.



      I want to setup a campaign and as soon as the person clicks the link with sc_camp, I want a Marketing Automation Campaign to kick in.
      Currently with Sitecore 9.1 you can already add a rule in the start condition of the MA: where the contact has triggered campaign x



      With goals, you have to select 'IsLiveEvent' so that the MA gets triggered during the session and not afterwards.
      Can this work for campaigns?










      share|improve this question














      In Sitecore, campaigns can be created for online and offline tracking. Those campaigns can then be triggered by adding sc_camp=the-unique-id to urls in social media or on the site itself.



      I want to setup a campaign and as soon as the person clicks the link with sc_camp, I want a Marketing Automation Campaign to kick in.
      Currently with Sitecore 9.1 you can already add a rule in the start condition of the MA: where the contact has triggered campaign x



      With goals, you have to select 'IsLiveEvent' so that the MA gets triggered during the session and not afterwards.
      Can this work for campaigns?







      marketing-automation campaigncreator






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 11:08









      Koen HeyeKoen Heye

      1,085522




      1,085522






















          1 Answer
          1






          active

          oldest

          votes


















          4














          Campaigns are not treated as live events OOTB. Live events are only detected for page events and outcomes by corresponding processors:




          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterPageEvent.LivePageEventInspector


          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterOutcome.LiveOutcomeInspector



          Both of the processors check for IsLiveEvent property on the marketing entity definition and kicks off submitLiveAutomationEvent pipeline if event/outcome matches that criterion.
          You could try to simulate similar functionality for campaigns by creating your own LiveCampaignInspector processor and patching triggerCampaign pipeline.



          public class LiveCampaignInspector : TriggerCampaignProcessor
          {
          public override void Process(TriggerCampaignArgs args)
          {
          new SubmitLiveAutomationEventPipeline().Run(new SubmitLiveAutomationEventArgs(args.Page.Session.Contact, args.Page.Session.Interaction, args.Definition.Id));
          }
          }


          Please note that I didn't have a chance to test it.






          share|improve this answer



















          • 1





            please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

            – Bas Lijten
            Mar 26 at 15:52












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "664"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17692%2fis-a-sitecore-campaign-triggered-as-a-live-event%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          Campaigns are not treated as live events OOTB. Live events are only detected for page events and outcomes by corresponding processors:




          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterPageEvent.LivePageEventInspector


          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterOutcome.LiveOutcomeInspector



          Both of the processors check for IsLiveEvent property on the marketing entity definition and kicks off submitLiveAutomationEvent pipeline if event/outcome matches that criterion.
          You could try to simulate similar functionality for campaigns by creating your own LiveCampaignInspector processor and patching triggerCampaign pipeline.



          public class LiveCampaignInspector : TriggerCampaignProcessor
          {
          public override void Process(TriggerCampaignArgs args)
          {
          new SubmitLiveAutomationEventPipeline().Run(new SubmitLiveAutomationEventArgs(args.Page.Session.Contact, args.Page.Session.Interaction, args.Definition.Id));
          }
          }


          Please note that I didn't have a chance to test it.






          share|improve this answer



















          • 1





            please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

            – Bas Lijten
            Mar 26 at 15:52
















          4














          Campaigns are not treated as live events OOTB. Live events are only detected for page events and outcomes by corresponding processors:




          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterPageEvent.LivePageEventInspector


          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterOutcome.LiveOutcomeInspector



          Both of the processors check for IsLiveEvent property on the marketing entity definition and kicks off submitLiveAutomationEvent pipeline if event/outcome matches that criterion.
          You could try to simulate similar functionality for campaigns by creating your own LiveCampaignInspector processor and patching triggerCampaign pipeline.



          public class LiveCampaignInspector : TriggerCampaignProcessor
          {
          public override void Process(TriggerCampaignArgs args)
          {
          new SubmitLiveAutomationEventPipeline().Run(new SubmitLiveAutomationEventArgs(args.Page.Session.Contact, args.Page.Session.Interaction, args.Definition.Id));
          }
          }


          Please note that I didn't have a chance to test it.






          share|improve this answer



















          • 1





            please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

            – Bas Lijten
            Mar 26 at 15:52














          4












          4








          4







          Campaigns are not treated as live events OOTB. Live events are only detected for page events and outcomes by corresponding processors:




          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterPageEvent.LivePageEventInspector


          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterOutcome.LiveOutcomeInspector



          Both of the processors check for IsLiveEvent property on the marketing entity definition and kicks off submitLiveAutomationEvent pipeline if event/outcome matches that criterion.
          You could try to simulate similar functionality for campaigns by creating your own LiveCampaignInspector processor and patching triggerCampaign pipeline.



          public class LiveCampaignInspector : TriggerCampaignProcessor
          {
          public override void Process(TriggerCampaignArgs args)
          {
          new SubmitLiveAutomationEventPipeline().Run(new SubmitLiveAutomationEventArgs(args.Page.Session.Contact, args.Page.Session.Interaction, args.Definition.Id));
          }
          }


          Please note that I didn't have a chance to test it.






          share|improve this answer













          Campaigns are not treated as live events OOTB. Live events are only detected for page events and outcomes by corresponding processors:




          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterPageEvent.LivePageEventInspector


          • Sitecore.Xdb.MarketingAutomation.Tracking.Pipelines.RegisterOutcome.LiveOutcomeInspector



          Both of the processors check for IsLiveEvent property on the marketing entity definition and kicks off submitLiveAutomationEvent pipeline if event/outcome matches that criterion.
          You could try to simulate similar functionality for campaigns by creating your own LiveCampaignInspector processor and patching triggerCampaign pipeline.



          public class LiveCampaignInspector : TriggerCampaignProcessor
          {
          public override void Process(TriggerCampaignArgs args)
          {
          new SubmitLiveAutomationEventPipeline().Run(new SubmitLiveAutomationEventArgs(args.Page.Session.Contact, args.Page.Session.Interaction, args.Definition.Id));
          }
          }


          Please note that I didn't have a chance to test it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 12:34









          grggrg

          1,349213




          1,349213








          • 1





            please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

            – Bas Lijten
            Mar 26 at 15:52














          • 1





            please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

            – Bas Lijten
            Mar 26 at 15:52








          1




          1





          please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

          – Bas Lijten
          Mar 26 at 15:52





          please note that a live event is not really "live". It means that actions that are triggered by those events can be handled during the same session and that an xConnect update isnt needed. Marketing automation runs async and has a delay (which can be configured). I wanted it to run immediately, but there always seems to be a delay of ~2seconds, when I decreased the automation plan time.

          – Bas Lijten
          Mar 26 at 15:52


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Sitecore Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17692%2fis-a-sitecore-campaign-triggered-as-a-live-event%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...