Adobe DTM Header and Footer

The Adobe DTM Header and Footer custom tag helps you identify pages where Dynamic Tag Manager is placing staging code.

The following item shows up in the Variable Summary report under the OP Custom Tag. The account is DTM.
  • DTM_Header_Value: Shows the pages where DTM fired and the DTM library filename.

To capture these 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){ 
callback(opReq.responseText); 
} 
} 
opReq.open("POST", baseURL, true); 
opReq.send(JSON.stringify(paramObject)); 
} 
var object = new Object(); 
var dtmHead = document.querySelector("script[src*='satelliteLib']") 
if(dtmHead){ 
var dtmHeadSRC = dtmHead.getAttribute("src"); 
object["DTM_Header_Value"] = dtmHeadSRC.substring(dtmHeadSRC.lastIndexOf("/"), dtmHeadSRC.length); 
} 
function contains(selector, text) { 
var elements = document.querySelectorAll(selector); 
return [].filter.call(elements, function(element){ 
return RegExp(text).test(element.textContent); 
}); 
} 
var dtmFoot = contains("script","_satellite.pageBottom()"); 
if(dtmFoot[0]!= null){object.DTM_Footer = "Present";} 
if(dtmHead || dtmFoot[0]!= null){ 
opReqGetAsync(object," DTM"); 
}
	
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.