I am trying to display some values on a dashboard. I am using Easytravel application , and want to display totalcost value using CSS selector. I created a property under Session and user action properties. While the capture expression is giving proper results when testing on chrome browser , only null value is shown on dashboard.
#iceform\\3aj_idt77-11-1 > span
When I am testing this expression in chrome
document.querySelector('#iceform\\3aj_idt77-11-1 > span').innerHTML
Can someone help me find out what i am missing ?
Solved! Go to Solution.
When you want to capture total cost:
please look on sourcecode:
as you can see you have class .totalCosts which is used only once on this page, so it's good for extracting properties. You should keep your rules as simple as possible.