Add custom parameters to the mPulse beacon

Capture specific data characteristics on the beacon that’s sent to mPulse.

Nothing in the original JavaScript snippet has to change. All you need to do is add extra code at end of the snippet (see Add the mPulse snippet to your pages manually).
This example adds UserId, ClientId, GroupId, and UniqueId to the mPulse beacon.
Note: Custom parameter data does not appear in the mPulse dashboards. This data can only be seen in the raw beacon log and your data science application if applicable.
function addVars() {
    "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") {