Last active
March 12, 2021 22:53
-
-
Save loldenburg/74073703f61c02b8365e7386e85f9fa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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