Reference direct call rule name in Adobe Analytics | Community
Skip to main content
Level 3
March 23, 2018
Solved

Reference direct call rule name in Adobe Analytics

  • March 23, 2018
  • 4 replies
  • 10675 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by KRAZ

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 !

4 replies

Level 2
March 26, 2018

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.

KRAZAuthor
Level 3
March 26, 2018

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.

Stewart_Schilling
Community Advisor
Community Advisor
March 26, 2018

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%`

KRAZAuthorAccepted solution
Level 3
March 26, 2018

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 !

Level 2
December 2, 2021

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. 

New Member
February 3, 2022

You can do the following: 

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

 

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

You can reference that identifier in your custom code like this