Add Google Analytics

This commit is contained in:
Jason 2016-03-17 21:52:46 -05:00
parent 7015eb1dc8
commit 15407c4cde
2 changed files with 11 additions and 1 deletions

9
analytics.js Normal file
View 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);
})();

View File

@ -22,8 +22,9 @@
"http://userstyles.org/", "http://userstyles.org/",
"https://userstyles.org/" "https://userstyles.org/"
], ],
"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'",
"background": { "background": {
"scripts": ["messaging.js", "storage-websql.js", "storage.js", "background.js"] "scripts": ["messaging.js", "storage-websql.js", "storage.js", "background.js", "analytics.js"]
}, },
"commands": { "commands": {
"openManage": { "openManage": {