Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Data Element change Event Type on Purchase Rule

bindukumari1990
Level 4
Level 4

Hi Team,

 

I have used data element change event type on purchase rule I have used Order_ID data element, but still the rule is not firing. Kindly help, as I am new to launch.

 

bindukumari1990_0-1627383652722.png

 

Note: the duration of data element is none.

4 Replies
jkm-disco
Level 5
Level 5

Hi @bindukumari1990 ,

 

Can you provide context in which the data element is being updated? Is it from within another rule or are you calling _satellite.setVar() directly? It seems more likely that the mechanism setting the variable is failing or the condition on the rule is not met.

bindukumari1990
Level 4
Level 4

@jkm-discoorder_ID is being updated, in checkout page order_ID is null, so once user is redirected to order confirmation page then order_id is updated and I am calling_satellite.setVar() directly.

 

Note: But before order_confirmation page, payment gateway page comes.

 

 

jkm-disco
Level 5
Level 5

First test would be to try out that rule without whatever code you're using for the condition to see if that's what's blocking the rule from firing. So which page is the rule supposed to fire? Checkout, gateway, or confirmation?

Also, as a note, the event "Data Element Change" checks the variable at a frequency of 1 second. So if you are navigating away before the Core extension has an oppertunity to check the values within the data elements, that could be an issue.

jkm-disco
Level 5
Level 5

Also, as a potential solution, since you are calling _satellite.setVar() directly: You can try to put the logic that you are looking for for setting the data element and the variables within a "Direct Call" event type with satellite.track(). This method could avoid some of the timing issues that may arise from the "Data Element Change" event.