The abort
variable is a boolean that can prevent the next tracking call from being sent to Adobe. Similar functionality exists in the Web SDK allowing you to return false
before an XDM event is sent.
Use the On before event send callback code editor and return false
.
return false;
Use the onBeforeEventSend
callback and return false
. See Modifying events globally in the Web SDK documentation for more information.
alloy("configure"), {
"onBeforeEventSend": function(content) {
return false;
}
}
There is not a dedicated field in the Adobe Analytics extension to use this variable. Use the custom code editor, following AppMeasurement syntax.
The s.abort
variable is a boolean. Its default value is false
.
true
, the next tracking call (t()
or tl()
) does not send any data to Adobe.false
or not defined, this variable does nothing.s.abort = true;
The abort
variable resets to false
after every tracking call. If you want to abort subsequent tracking calls on the same page, set abort
to true
again.
The abort
variable can be set in the doPlugins()
function, which is the last function to run before an image request is sent to Adobe. This example operates similarly to the onBeforeEventSend
callback using the Web SDK.
s.doPlugins = function(s) {
s.campaign = s.Util.getQueryParam("cid");
if ((!s.campaign) && (!s.events)) {
s.abort = true;
}
};
You can centralize the logic you use to identify activity that you do not want to track, such as some custom links or external links in display ads.