Expand my Community achievements bar.

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

Avatar

Level 5

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

2 Replies

Avatar

Community Advisor

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)

Avatar

Community Advisor

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.