Unknown java script rewriting itself on my pages

Hello, I notice something weird on my store today. Whenever I click on the legal pages from the checkout footer at the end of the text I get this weird code as the picture below.
This only happens on the checkout footer of shopify. If the pages are accessed from the theme footer everything is fine.

Considering this I went into my shopify admin settings > legal pages and I took a look at the html code. There I found this weird script which is written on all of my legal pages in the html sction.

Now… I’ve tried to delete it, to change the store theme, delete all the apps etc. nothing works… the script rewrites itself constantly. From what I can see it seems to be google tag script for google analytics, the thing is… that is not my GA because I’m not using one. I’m afraid someone from some weird app could have compromised my store and start to steal my store data my store data. This code also appears in the products section in the html description.

Please if anyone has a solution to this let me know.

Anyone knows about this? Contact shopify support and even they don’t know what’s this

Found out what the problem was. After endless testing and theme decoding, changing domains, etc etc. it was a freaking chrome extension that was constantly injecting this script into my pages. I will not say it’s name because is a well known app from the shopify app store, but be careful what you’re installing.