Add Google Analytics
This commit is contained in:
parent
7015eb1dc8
commit
15407c4cde
9
analytics.js
Normal file
9
analytics.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-8246384-4']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = 'https://ssl.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
|
@ -22,8 +22,9 @@
|
|||
"http://userstyles.org/",
|
||||
"https://userstyles.org/"
|
||||
],
|
||||
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",
|
||||
"background": {
|
||||
"scripts": ["messaging.js", "storage-websql.js", "storage.js", "background.js"]
|
||||
"scripts": ["messaging.js", "storage-websql.js", "storage.js", "background.js", "analytics.js"]
|
||||
},
|
||||
"commands": {
|
||||
"openManage": {
|
||||
|
|
Loading…
Reference in New Issue
Block a user