You do realize that your comments above just past through GFW and I am reading it on the other side of the GFW? To answer your question, no, I don't trust what you said.
Happily the Chinese government let the Baidu javascript work as intended for Chinese users, it was only for international users that they converted it into malware. Bottom line, don't load any javascript file hosted in mainland China.
If the the US government forced all traffic through a single firewall and used said firewall to infect Google Analytics javascript files on third party websites to force international users to unwittingly engage in a DDoS against a Chinese site that was hosting open source code designed to allow US citizens to get around the 'great US firewall', I'd be advising folks against trusting Google Analytics and US-hosted javascript the way I advise them against trusting Baidu analytics and China-hosted javascript now.
https://www.ft.com/content/193bbffc-38af-11e7-821a-6027b8a20...
please don't bother mentioning the minority stake from CIIC, if that is a national security threat to the US, then all successful Chinese firms have the same issue.
0. https://www.pri.org/stories/2016-06-03/how-china-has-censore...
(It is worth noting that these remarks came in the middle of a bidding war between Ant and Euronet (https://techcrunch.com/2017/03/14/euronet-alibaba-ant-financ...). Take the situation however you want...)
Either way, other articles (https://www.theverge.com/2017/5/9/15595338/alipay-us-expansi...) point out that Alipay has a presence in the United States... the concern seemed pretty specific, and not really like the wholesale blocking of major American (and other) sites that China engages in.
http://www.telegraph.co.uk/news/worldnews/northamerica/usa/1...
https://www.ft.com/content/193bbffc-38af-11e7-821a-6027b8a20...
You can probably read some news about Alipay approaching US retailers recently, that is all about 1) providing services to Chinese tourists visiting US, 2) serving Chinese online customers purchasing US products online.