Expand my Community achievements bar.

SOLVED

How to fire a particular Adobe event using direct call rule from our environment custom script file.

Avatar

Level 1

Hi

I am facing issue while calling a direct call rule from my code base. I need to trigger a particular event on ajax Complete function 

 

ex:

complete: function(data) {

            if(totalPage != 0 && totalPage == page){

//Fire the Direct Call rule here.

}

Can you please help me with how I can do that???

 

Regards

Chinmay Hegde

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Chinmay ,

First you need to create a Direct call rule in the DTM interface and in the conditions tab on Direct call rule specify the string say "Ajax_Complete_Event" and then under Adobe Analytics tab , initialize the Traffic/conversion variables and event which needs to be triggered when the Direct call rule is fired. Please see the following link for more information on Direct Call rules.

https://marketing.adobe.com/resources/help/en_US/dtm/t_rules_direct_conditions.html

Also, Please see the below snippet of code to get more details on how to fire Direct call Rule from your code.

complete: function(data) { if(totalPage != 0 && totalPage == page){ _satellite.track("Ajax_Complete_Event"); }

Thanks & Regards

Parit Mitttal

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi Chinmay ,

First you need to create a Direct call rule in the DTM interface and in the conditions tab on Direct call rule specify the string say "Ajax_Complete_Event" and then under Adobe Analytics tab , initialize the Traffic/conversion variables and event which needs to be triggered when the Direct call rule is fired. Please see the following link for more information on Direct Call rules.

https://marketing.adobe.com/resources/help/en_US/dtm/t_rules_direct_conditions.html

Also, Please see the below snippet of code to get more details on how to fire Direct call Rule from your code.

complete: function(data) { if(totalPage != 0 && totalPage == page){ _satellite.track("Ajax_Complete_Event"); }

Thanks & Regards

Parit Mitttal