Skip to content

Instantly share code, notes, and snippets.

@cvazac
Created May 28, 2015 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cvazac/34ce10b4b423b3e60c8f to your computer and use it in GitHub Desktop.
Save cvazac/34ce10b4b423b3e60c8f to your computer and use it in GitHub Desktop.
BOOMR.addVar(...) `onBoomerangLoaded`
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