I started to use TUIs to do this. Have them track "tracked" products in a local storage mechanism and otherwise browse the web as normal through a controlled browser. It's not optimal but it's the only way to have some control over what it's doing.