By "Server Call", I assume that you are referring to Adobe Analytics beacons.
This code tests to see if it is running within an iframe. It could be shortened a bit as such:
if (parent !== window) {
//we are in an iframe
return false;
} else {
//we are NOT in an iframe
return true;
}
This code alone does nothing but return a boolean value (true or false). I can think of a couple places where this code _could_ go within DTM to suppress a server call (Adobe Analytics beacon).
1) If this code were placed in a DTM custom condition, it would keep the rule from firing if DTM has been loaded in an iFrame.
2) If this code were placed in the AA custom code section of a DTM rule, it would keep the beacon from being sent if DTM has been loaded in an iFrame. Note that within the AA custom code section of a DTM rule, returning false has the same effect as setting s.abort=true.
Where do you have this code implemented?
-Stew