How to debug direct call rule like datalayer to see what values are available? | Community
Skip to main content
Level 5
March 27, 2023
Solved

How to debug direct call rule like datalayer to see what values are available?

  • March 27, 2023
  • 2 replies
  • 1339 views

How to debug direct call rule like data layer to see what values are available?

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 leocwlau

That's why the direct call rule is the least preferred type of rule in my opinion. To know what exact values are presented at the trigger time of the direct call rule, you can only add custom code action and print out values into the console for examination.

2 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
March 27, 2023

You can read the Adobe Data Layer in your browsers console by typing in "adobeDataLayer" and hitting enter (this is in the code execution area, not the filter).

 

However, reading it and using it to debug, you will have to know what events are triggering rules and what object paths are being accessed (as this is an event based data layer, and depending on the implementation, new data could be continually be added to the object, or the object could be cleared and replaced)

leocwlau
Community Advisor and Adobe Champion
leocwlauCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 29, 2023

That's why the direct call rule is the least preferred type of rule in my opinion. To know what exact values are presented at the trigger time of the direct call rule, you can only add custom code action and print out values into the console for examination.