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

chinmay_hegde

22-03-2016

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

Accepted Solutions (1)

Accepted Solutions (1)

ParitMittal

23-03-2016

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

Answers (0)