The Amazon shopping component has nothing to do with "PRISM" or other mass surveillance programs (though the amazon component of Ubuntu is hardly something I would call mass surveillance). But anything you do online can be tracked no matter what system you use.
Elementary, though based on Ubuntu, does not have the Amazon shopping tracking component. But again, what you do online is on you, not the system you use.