Two Direct calls triggering at the same time causing the same variables & Event getting passed in both the s.tl calls | Community
Skip to main content
Level 2
February 17, 2022
Solved

Two Direct calls triggering at the same time causing the same variables & Event getting passed in both the s.tl calls

  • February 17, 2022
  • 3 replies
  • 1911 views

Hi All,

 

I have 2 direct call rules set up (Based on identifier) which will be fired on a landing page of application form. I am facing an issue with this set up as the DCR1 Variables & Event are being overridden with the DCR2 variables & Event.

 

Direct Call Rule 1: Application form Load : event 8 (Rule sequence 50)

Direct Call Rule 2: Application form Visible :event 9 (Rule Sequence 100)

 

Both direct calls rules Action sequence

 

Added delay for both direct call rules so that these both do not fire prior to the Page view call.

 

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 Gokul_Agiwal

Hi @sek_23 

I hope you have setup 2 separate rules. rule ordering allows you to control the order of execution for rules that share an event of same type. 

 

So you can try like below

1) create a rule (which you already created) with direct call events.  

2) Add condition and action with your direct call rule

3) Add Max Frequency condition like below 

Please chose the Unit based on your scenario. 

So here in this case, 

When direct call triggered the rule fired, it check max frequency condition, if this is the first time then rule will run and frequency will be 0, rule continue running and update to frequency 1. 

if direct call triggered again then rule will run however this time max frequency condition will fail so the rule stops there and action won't execute this time. 

Hope this helps. 

 

3 replies

pradeep_nextrow
Level 4
February 17, 2022

Have you tried changing the rule order for both the rules. You can do that under "Advanced Options" when you are setting up the direct call rule event configuration. The lower value rule gets fired first.

Sek_23Author
Level 2
February 17, 2022

Tried that way but it's not working

Gokul_Agiwal
Community Advisor
Gokul_AgiwalCommunity AdvisorAccepted solution
Community Advisor
February 17, 2022

Hi @sek_23 

I hope you have setup 2 separate rules. rule ordering allows you to control the order of execution for rules that share an event of same type. 

 

So you can try like below

1) create a rule (which you already created) with direct call events.  

2) Add condition and action with your direct call rule

3) Add Max Frequency condition like below 

Please chose the Unit based on your scenario. 

So here in this case, 

When direct call triggered the rule fired, it check max frequency condition, if this is the first time then rule will run and frequency will be 0, rule continue running and update to frequency 1. 

if direct call triggered again then rule will run however this time max frequency condition will fail so the rule stops there and action won't execute this time. 

Hope this helps. 

 

Alexis_Cazes_
Level 10
March 22, 2022

ok this is an interesting case and one that cannot be fully answered I think by ordering the rule as the issue lies in Adobe Analytics code execution. 

 

If I understand well you want to send an event when the form is loaded followed by an event when the form is visible. This can happen really quickly and might not give enough time for analytics to be sent. In results in the analytics object to be updated with new configuration.

 

One of the solution might be to use the override functionality https://experienceleague.adobe.com/docs/analytics/implementation/js/overrides.html?lang=en