DTM Rules


Captures all the DTM rules that fired on a given page.

Under Variable Summary report in ObservePoint data, select the DTM Rules account to see the relevant variables. Each variable will indicate whether it fired or not.

To capture the following details in an audit or web journey, paste the snippet below into an Execute Action:

function opReqGetAsync(paramObject, acct, callback) { 
var baseURL = "https://opreq.observepoint.com/?acct=" + acct; 
var opReq = new XMLHttpRequest(); 
opReq.onreadystatechange = function() { 
if (opReq.readyState == 4 && opReq.status == 200){ 
opReq.open("POST", baseURL, true); 
var object = new Object(); 
var DTM_logs = _satellite.Logger.getHistory(); 
for (var i=0; i<DTM_logs.length; i++){ 
var value = DTM_logs[i][1]; 
if(value.indexOf("fired") != -1){ 
var rulename = DTM_logs[i][1]; 
var position = rulename.indexOf("fired")-1; 
rulename = rulename.substring(0, position); 
rulename = rulename.replace(/ /g,"_").replace(/"/g,""); 
object[rulename] = "Fired"; 
opReqGetAsync(object," DTM Rules");
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.