How can I prevent the new indexing bug from creating useless pages on Google?

I just want to say, Google tracking code also is used for various analytics tracking, but it could not generate so many pages. So do you think whether Shopify needs optimizate your tracking code to stop generating such ■■■■ pages !!!