How do we trigger rule for ANY direct call rule | Community
Skip to main content
Level 3
January 22, 2020
Solved

How do we trigger rule for ANY direct call rule

  • January 22, 2020
  • 5 replies
  • 8632 views

We use a different direct call rule for different types of 'pages' on our single page app that send data to Analytics.  I have a pixel rule that I want to fire after any direct call rule fires.  Does anybody know how this can be accomplished?

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by franzli

What you can do is for every direct call listener that you have, have it fire ANOTHER direct call that fires a universal rule.

Let's say you have 3 direct calls

  • "DirectCall1" Listener > Action to Call "Universal Direct Call Rule"
  • "DirectCall2" Listener > Action to Call "Universal Direct Call Rule"
  • "DirectCall3" Listener > Action to Call "Universal Direct Call Rule"

Then they all link to the universal direct call which has an action like: _satellite.track("universalDirectCall");

Then from there, you create a new rule:

  • "universalDirectCall" Listener > Action: Fire Pixel.

You have more control over when and what and how the pixel gets fired and also has the pixel code only in one place.

5 replies

January 24, 2020

I don't believe there is a way to fire "after any direct call". But you may find it helpful to use the below:

 

s.registerPostTrackCallback(function(){ //Code run after every beacon });

 

Level 3
January 29, 2020
I will look into this, but I want this to only run when a direct call rule fires and not for any other beacon call that we have running based on events or other triggers.
Level 3
January 29, 2020

Thanks Brandon,

 

I will see if I can determine how to make this work.  I would not want it to fire after any of the other beacon calls we have, only those that send to analytics from our direct call rules.

 

Is it possible to have several rules that fire from the same direct call rule?

thebenrobb
Adobe Employee
Adobe Employee
February 5, 2020

There is no mechanism to define Rule Actions that should occur for any direct call rule.  You'd simply need to add the Action to any of the Rules you have that use Direct Call as the Event.

Haran_Huang
Level 4
February 21, 2020

Direct call rule fires will have Action, you can place the pixel after sending the page.

franzli
franzliAccepted solution
Level 4
February 24, 2020

What you can do is for every direct call listener that you have, have it fire ANOTHER direct call that fires a universal rule.

Let's say you have 3 direct calls

  • "DirectCall1" Listener > Action to Call "Universal Direct Call Rule"
  • "DirectCall2" Listener > Action to Call "Universal Direct Call Rule"
  • "DirectCall3" Listener > Action to Call "Universal Direct Call Rule"

Then they all link to the universal direct call which has an action like: _satellite.track("universalDirectCall");

Then from there, you create a new rule:

  • "universalDirectCall" Listener > Action: Fire Pixel.

You have more control over when and what and how the pixel gets fired and also has the pixel code only in one place.

Level 3
March 4, 2020
Thank you! We have implementing using this paradigm and it works very well.