Skip to main content
All CollectionsObservePoint Custom Tag
OP Custom Tag - Tealium JavaScript Loader
OP Custom Tag - Tealium JavaScript Loader
Luiza Gircoveanu avatar
Written by Luiza Gircoveanu
Updated over a week ago

Overview

This custom tag captures the source of the Tealium profile. Used to ensure the right code base is used respectively in the correct environment (i.e. production, development, staging).

Under Variable Summary in the ObservePoint Data tag, select Tealium JS account to see the relevant variables.

  • js URL: This shows the JavaScript library utilized for each URL.

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 object = new Object();
object["js url"] = document.querySelector("script[src*='utag.js']").getAttribute('src');
opReqGetAsync(object, " Tealium JS");
Did this answer your question?