Expand my Community achievements bar.

SOLVED

Reference direct call rule name in Adobe Analytics

Avatar

Level 4

Hi all,

Is there a possibility to reference the direct call rule name in the Adobe Analytics section e.g. as eVar. Imagine the following scenario:

I have 5 Tabs and each click on the tab triggers a different direct call rule. Now in Launch I can finally handle everything in one rule and set all direct call rule names as trigger. Nevertheless I want to know at the end which tab has been clicked. Hence I would need to reference the direct call rule name e.g. in an eVar or in the custom link section. How can I find out which rule was the triggering one?

Thanks for your help!

Best,

Konstantin

1 Accepted Solution

Avatar

Correct answer by
Level 4

Brilliant comment, this gave me the hint where I need to look into. The event object in my case looks the following:

event.$rule.name:"RULE_NAME"

event.$type:"RULE_TYPE" e.g. core.direct-call

event.identifier:"DIRECT_CALL_RULE_NAME"

In my case I was looking for the identifier. So problem solved !

View solution in original post

10 Replies

Avatar

Level 2

I don't think you can do what you are proposing. I think it is a 1:1 relationship with direct call rules (and possibly 1:many). Meaning that each direct call will have to have at least one rule attached to it. I also don't think there is any way of referencing the trigger event.  What I would do is update the data layer with whatever tab you are clicking on and fire the same direct call rule for all 5 tabs. In your one rule you can set the evar to the value in the data layer.

Avatar

Level 4

Thanks @FOX007 for your response. Good idea to go over the Data Layer, nevertheless I cannot change the application anymore, hence I will go for 5 separate rules and just write the value manually into the eVar.

Avatar

Community Advisor

I saw this about a week ago in the Adobe Launch Developers slack channel.

Hot off the press, you can access the rule name to send it off to Analytics or whatever: `%event.$rule.name%`

Avatar

Correct answer by
Level 4

Brilliant comment, this gave me the hint where I need to look into. The event object in my case looks the following:

event.$rule.name:"RULE_NAME"

event.$type:"RULE_TYPE" e.g. core.direct-call

event.identifier:"DIRECT_CALL_RULE_NAME"

In my case I was looking for the identifier. So problem solved !

Avatar

Level 2

Were you able to get the event identifier to populate as a eVar? I'm wanting to do what you mention in the initial question, but I'm not quite following to your end result. 

Avatar

Level 1

You can do the following: 

If you have a rule that fires off of multiple direct calls

amandae13031165_0-1643904319062.png 

and one of those has an identifier of "group-tour"

amandae13031165_1-1643904376823.png

You can reference that identifier in your custom code like this

amandae13031165_2-1643904430968.png

 

 

Avatar

Level 1

Hi @amandae13031165 , @Stewart_Schilling , @KRAZ 

I was also trying to pass the PageLoad rule name into an eVar. However, I'm still getting empty eVar in the console. Is something I'm missing in the implementation?

Screen Shot 2022-04-06 at 10.15.37 AM.png

Screen Shot 2022-04-06 at 10.16.04 AM.png

 

Screen Shot 2022-04-06 at 10.27.09 AM.png

Thanks,

Rohit

 

 

Avatar

Community Advisor

Try using the AA Set Variable UI.  In the example below I set eVar3 to %event.$rule.name%

 

Screen Shot 2022-04-06 at 11.49.57 AM.png

Avatar

Level 2

@KRAZ @Stewart_Schilling Between the help of you both my rule efficiency just went up tremendously. Thanks! 

 

Multiple direct calls in events > setting evar as %event.identifier% in UI; gets me exactly what I  needed! What normally would have been 4 separate rules is now 1, and that's just for one requirement. I will be utilizing this to consolidate other requirements!