Expand my Community achievements bar.

SOLVED

Writing direct call function as custom code in Adobe Launch rule

Avatar

Level 1

I would like to write direct call as custom code because I want the rule to fire on a range of different direct calls. 

 

I know it's possible to add several direct calls, but due to the scope I want in this rule, this seems messy to me. I would prefer to have it lined up with use of custom code.

 

Can anyone help me? Thanks in advance!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @fridarasch  - This forum is more to discuss on adobe experience platfrom (AEP),  which is a CDP concepts. I would request you to post your queries on https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-data/ct-p/adobe-launch-co... to get better and quick solution going forward. 

However, let me answer for you on this. Yes, it is possible to utilize direct call on the custom code. Please find the below code which should be call across as required on the custom code. Call this line whevere it is required and pass the actual string over the code to trigger the rule.

_satellite.track('yourstringgoeshere');

Reference: https://digitalbalance.com.au/our-blog/how-to-use-direct-call-rules-in-dtm/

 

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @fridarasch  - This forum is more to discuss on adobe experience platfrom (AEP),  which is a CDP concepts. I would request you to post your queries on https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-data/ct-p/adobe-launch-co... to get better and quick solution going forward. 

However, let me answer for you on this. Yes, it is possible to utilize direct call on the custom code. Please find the below code which should be call across as required on the custom code. Call this line whevere it is required and pass the actual string over the code to trigger the rule.

_satellite.track('yourstringgoeshere');

Reference: https://digitalbalance.com.au/our-blog/how-to-use-direct-call-rules-in-dtm/

 

Hi @jayakrishnaaparthasarathy .

Thanks for your help! Also, thanks for giving me the directions to the correct forum. Will use that going forward.

I was not able to fire the rule with this code, but perhaps it's something I'm missing. Will take a look at the documentation you attached, and otherwise ask a new question in the other forum.