Created
May 28, 2015 23:05
-
-
Save cvazac/34ce10b4b423b3e60c8f to your computer and use it in GitHub Desktop.
BOOMR.addVar(...) `onBoomerangLoaded`
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
function addVars() { | |
BOOMR.addVar({ | |
"UserId": SOASTA.UserId, | |
"ClientId": SOASTA.ClientId, | |
"GroupId": SOASTA.GroupId, | |
"UniqueId": SOASTA.UniqueId | |
}); | |
} | |
if (document.addEventListener) { | |
document.addEventListener("onBoomerangLoaded", addVars); | |
} | |
else if (document.attachEvent) { | |
document.attachEvent("onpropertychange", function(e) { | |
if (!e) e = window.event; | |
if (e && e.propertyName === "onBoomerangLoaded") { | |
addVars(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment