Skip to content

Instantly share code, notes, and snippets.

@loldenburg
Last active March 12, 2021 22:53
Show Gist options
  • Save loldenburg/74073703f61c02b8365e7386e85f9fa8 to your computer and use it in GitHub Desktop.
Save loldenburg/74073703f61c02b8365e7386e85f9fa8 to your computer and use it in GitHub Desktop.
// This code needs to be implemented inside of Tealium!
// Make this your first DOM Ready Extension
// redefine queue functions to now fire normal utag.view / utag.link calls
if (window.utagQ) {
utagQ.view = function (payload) {
utag.view(payload)
};
utagQ.link = function (payload) {
utag.link(payload)
};
var uQ = window.utagQ.q || null;
if (uQ) {
for (var i = 0, ii = uQ.length; i < ii; i++) {
utag[uQ[i].hit](uQ[i].data);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment