Skip to main content

OP Custom Tag - Tealium Tags and Extensions

Luiza Gircoveanu avatar
Written by Luiza Gircoveanu
Updated over 10 months ago

Overview

This custom tag shows tags that are loaded through Tealium.

Under Variable Summary in ObservePoint data, select the Tealium Tags account to see relevant variables.

To capture these details in an audit or 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 request = new XMLHttpRequest();
request.onreadystatechange = function() {
if (request.readyState == 4 && request.status == 200) {
var object = new Object();
var companiondata = JSON.parse(request.response);
console.log(companiondata);
for (var i in utag.send) {
var tealTag = companiondata.manage[utag.send[i].id].title;
tealTag = tealTag.replace(/ /g, "_").replace(/\/\//g, "-").replace(/\//g, "-").replace(/:/g, "-");
object[tealTag] = "OK";
}
opReqGetAsync(object, "Tealium Tags");
}
};
var url = "https://my.tealiumiq.com/urest/legacy/tagcompanion/getProfile?utid=" + utag.cfg.utid
request.open('GET', url);
request.send();
Did this answer your question?