We've started tracking JavaScript errors on our website and see some interesting things coming from users. There have been a lot of legitimate bugs which we've worked to patch up, but one thing we saw recently is what looks like an adware plugin from Shoppingate apparently injecting some code into our site. Is there any way to capture this input and block it on our end so it doesn't degrade the user experience?
In this case we get a Script error.
and a one line stack trace:
https://inst.shoppingate.info/js/sg_bg.js?AFFILIATE_ID=crsrdr&SUB_DISTRIBUTER_ID=300246822525000000&BRAND_DISPLAY_NAME=Browsers%2B%20Apps%20%2B:0:0:in `?'