Should Trackid=sp-006 have been prevented and or identified in a scan

Should Trackid=sp-006 virus have been prevented from infecting my PC or at least identified in a post infection scan ?

It is not a virus but a adware/browser hijacker ….

Do you have avast “Possible Unwanted Program” detection turned on?