How to use Google Analytics in Chrome Extension?
问题 This official tutorial seems outdated because ga.js is deprecated according to this. Besides, in the tutorial it has: _gaq.push(['_setAccount', 'UA-XXXXXXXX-X']); but UA-XXX-X is property ID not account ID. The latest seems to be analytics.js I tried this solution but it doesn't work for me. I saw error Refused to load the script 'https://www.google-analytics.com/analytics.js' because it violates the following Content Security Policy directive: "script-src 'self' https://www.googletagmanager