I've been able to accomplish this with the following code:
s.abort = self != top
If self == top, you're not in an iframe and want the the pixel to fire s.abort = false
If self != top you're in an iframe and want to stop the pixel s.abort = true
Another way to accomplish this is:
if(self != top)s.abort = true;