chrome extension refuses to load Google analytics -


i've followed countless stackoverflow tutorials specifying how install google analytics correctly chrome extension nothing has seemed work me far.

right have google analytics tracking code inside of main js file:

(function(i,s,o,g,r,a,m){i['googleanalyticsobject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new date();a=s.createelement(o), m=s.getelementsbytagname(o)[0];a.async=1;a.src=g;m.parentnode.insertbefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');  ga('create', 'ua-xxxxxxxx-1', 'auto'); ga('set', 'checkprotocoltask', function(){});  ga('require', 'displayfeatures'); ga('send', 'pageview', '/override.html'); 

my content_security_policy looks this:

"content_security_policy": "script-src 'self' https://query.yahooapis.com https://google-analytics.com; object-src 'self'" 

when run inside of local extension error is:

refused load script 'https://www.google-analytics.com/analytics.js' because violates following content security policy directive: "script-src 'self' https://query.yahooapis.com https://google-analytics.com".

i've tried downloading analytics.js file , using inside of content_script didn't work either... ideas? think i've looked @ every stackoverflow questions there google analytics inside of chrome extension , none have seemed work...


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -